regex - .htaccess redirect after replace a word? -
I need to use the .htaccess file to replace a word in the URL; Something like this:
Example URL:
http://example.com/oldword/test-page.html Redirect Do:
http://example.com/newword/test-page.html How do I redirect mod_rewrite to redirect every url
P> It should do this for you:
revised rule ^ oldword /(.*) / new word / $ 1 [L] edit : This is probably your rewrite setting, but it it will be closed.
Edit second: If you need a 301 permanent permanent title associated with the old URL, then you can do anything like this:
Rev. Rule ^ Word /(.*) / new word / $ 1 [r = 301, l]
Comments
Post a Comment