Jinkler Posted August 5, 2014 Share Posted August 5, 2014 I need to move one of my sites from being at /public_html/ to public_html/forum, whilst also keeping any inbound links working. Could someone point me how to do this via htaccess? Link to comment Share on other sites More sharing options...
.Ian Posted August 6, 2014 Share Posted August 6, 2014 Evening..... RedirectMatch 301 ^/(.*) http://www.YOURDOMAIN.co.uk/forum/$1 Should work fine That will take anything in the root to now be in /forum/ If you need items in the root still then something like RedirectMatch 301 ^/folder1/(.*) http://www.YOURDOMAIN.co.uk/forum/folder1/$1 RedirectMatch 301 ^/folder2/(.*) http://www.YOURDOMAIN.co.uk/forum/folder2/$1 etc... should be fine. Link to comment Share on other sites More sharing options...
-RAW- Posted August 7, 2014 Share Posted August 7, 2014 see here also http://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F Link to comment Share on other sites More sharing options...
Jinkler Posted August 11, 2014 Author Share Posted August 11, 2014 Thanks for the help guys, all resolved now :) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.