Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- Dynamic 301 .htaccess Redirects not Working


adder - 2:35 pm on Oct 24, 2012 (gmt 0)


Hi,

I'm trying to redirect old-style dynamic urls to a set of static urls using .htaccess
Wrote this code but it doesn't seem to be doing anything. Where's the mistake please?


RewriteEngine on
RewriteCond %{QUERY_STRING} ^pageid=325$
RewriteRule ^/site/index.cfm$ http://www.example.com/new-url.htm? [L,R=301]


Old url structure is:
http://www.example.com/site/index.cfm?pageid=325
and I want it to be:
http://www.example.com/new-url.htm


Thread source:: http://www.webmasterworld.com/apache/4511714.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com