melting_dog Posted January 11, 2012 Share Posted January 11, 2012 Hi all, Sorry: I hope this is the correct forum for this question. I have a directory within my public_html directory that contains a newer version of my site. Rather then deleting the old site in public_html I am hoping to just redirect all www requests to the new directory. I have tried to google how to do this but havent come up with anything useful asides from editing the .htacess file with: Redirect /index.html http://example.com/newdirectory/ but I am not sure this will work. I do not want my URLs to consistently appear like www.mysite.com/newsite Can anyone advise me? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/254834-redirect-www-access-to-different-directory/ Share on other sites More sharing options...
melting_dog Posted January 13, 2012 Author Share Posted January 13, 2012 Anyone? Quote Link to comment https://forums.phpfreaks.com/topic/254834-redirect-www-access-to-different-directory/#findComment-1307164 Share on other sites More sharing options...
titan21 Posted March 27, 2012 Share Posted March 27, 2012 This is an old thread but I'll help if it's still relevant. You should be able to just to change the value of DocumentRoot in your apache set up and restart the server which will then point to your new site. Quote Link to comment https://forums.phpfreaks.com/topic/254834-redirect-www-access-to-different-directory/#findComment-1331476 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.