Renegade
Well-known member
Redirects are something I can't get my head around so naturally I am doing something wrong.
I need to setup a redirect map and have done the following 3 things but still can't get it to work. What could I be doing wrong?
Declare in httpd.conf
Placed a file with the following text in xf1.txt
Placed the following in .htaccess
I need to setup a redirect map and have done the following 3 things but still can't get it to work. What could I be doing wrong?
Declare in httpd.conf
Code:
RewriteMap url_rewrite_map txt:/home/xyz/public_html/xf1.txt
Placed a file with the following text in xf1.txt
Code:
/forum-abc/lets-play-10131.html /community/threads/lets-play.70898/
Placed the following in .htaccess
Code:
RewriteCond ${url_rewrite_map:$1|NOT_FOUND} !NOT_FOUND
RewriteRule ^(.*) http://www.site.com/${url_rewrite_map:$1} [R=301]