Chris34 Posted June 25, 2009 Share Posted June 25, 2009 Hi all, When I type in the browser www.mywebsite.co.uk/catalog then my website shows up. However when I type www.mywebsite.co.uk it just shows a page saying 'You see this page because you have set up your Web server for serving a new site, but have not uploaded the site content yet.' My question is how do I make it go to my website? Cheers, Chris. Link to comment Share on other sites More sharing options...
FIMBLE Posted June 25, 2009 Share Posted June 25, 2009 You need to add a redirect, either via HML, htaccess or PHP Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
FIMBLE Posted June 25, 2009 Share Posted June 25, 2009 for php use this code <?php header( 'Location: http://www.yoursite.com/catalog/' ) ; ?> Create a file called index.php with notepad or similar, add the above code (changing the Yoursite bit) UPload to the root directory It will now redirect to the catalog folder Nic Sometimes you're the dog and sometimes the lamp post [/url] My Contributions Link to comment Share on other sites More sharing options...
Chris34 Posted June 25, 2009 Author Share Posted June 25, 2009 Hi nic, thank you for your reply. I just did as you said but the server would allow my to copy the file over, it came up with 'Unable to upload index.php to /index.php: filemng failed: cp: cannot create regular file `/var/www/vhosts/mysite.co.uk/index.php': Permission denied filemng: Error occured during /bin/cp command. Any idea's? Chris. Link to comment Share on other sites More sharing options...
Chris34 Posted June 25, 2009 Author Share Posted June 25, 2009 Hi nic, Thanks for that, I've got it working now, I was trying to install it in the absolute root of the domain and it wouldn't let me so I tried it in the httpdocs folder and it worked. Thank you very much for your help, Chris. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.