ngreenwood6 Posted December 28, 2008 Share Posted December 28, 2008 Hello all, I just set up my own vds for a personal website. I have used web hosting before but never a vds. I want to redirect my site from http://mysite.com to http://mysite.com/gallery. I am using apache. can anyone help please. Quote Link to comment https://forums.phpfreaks.com/topic/138649-url-redirect/ Share on other sites More sharing options...
rlhms09 Posted January 13, 2009 Share Posted January 13, 2009 Hi, The easiest method (without any server side scripting) would be to change your DocumentRoot entry for mysite.com in Apache's httpd.conf file to be the folder that you want mysite.com to direct to. If you intend gallery to be the default folder when visiting the site, then gallery should be your DocumentRoot. By doing this, when you visit mysite.com, the contents of gallery will be displayed by default. If you have other folders that you want to access from mysite.com that are currently siblings to gallery, then just move them inside gallery. Is that what you are trying to accomplish? Regards, Rory Laitila Technical Support Representative rlaitila@hostmysite.com HostMySite.com Quote Link to comment https://forums.phpfreaks.com/topic/138649-url-redirect/#findComment-736344 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.