how do I redirect urls from old url to new url? Here is the case:
http://www.lorem.com/ipsum/dolor/sit -> http://www.lorem.com/ipsum/dolor/amet
http://www.lorem.com/ipsum/dolor/sit/lipsum -> http://www.lorem.com/ipsum/dolor/amet/lipsum
http://www.lorem.com/ipsum/dolor/sit/vulvat -> http://www.lorem.com/ipsum/dolor/amet/vulvat
http://www.lorem.com/ipsum/dolor/sit/lol -> http://www.lorem.com/ipsum/dolor/amet/lol
The customer has renamed sit to amet. Do I have to create one redirect per link, or can I redirect sit to amet and all the pages under sit in one go?
You will need only one RewriteRule to handle this.
Enable mod_rewrite and .htaccess through
httpd.confand then put this code in your.htaccessunderDOCUMENT_ROOTdirectory: