Mrs Minx Posted November 5, 2006 Share Posted November 5, 2006 Hi, my web designer set up my shop and has introduced a splash page. In the root directory is the catalog folder and also stylesheet and index.html If I delete index.html (the splash page) the whole website doesn't work. How do I get rid of the splash page (looks naf) so that when users click onto my URL it comes up straight away with the shop? Any help appreciated :) ---------------------------------------- Minxy :) "Keep plodding on to achieve your dreams" Link to comment Share on other sites More sharing options...
ddp Posted November 5, 2006 Share Posted November 5, 2006 Hi, my web designer set up my shop and has introduced a splash page. In the root directory is the catalog folder and also stylesheet and index.html If I delete index.html (the splash page) the whole website doesn't work. How do I get rid of the splash page (looks naf) so that when users click onto my URL it comes up straight away with the shop? Any help appreciated :) Hi there. Post a link to your shop that might help us help you. If you shop is not in to root moving it there would fix the problem. To do this you will also need to update your two config.php files. Backup before making changes. Backup before making changes! Backup before making changes!! You did do a backup? eh? Link to comment Share on other sites More sharing options...
shooter-boy Posted November 5, 2006 Share Posted November 5, 2006 I think what you are trying to say is that you have an initial page (flash or whatever), then it redirects to your store...? If so, try creating a PHP file with the following code: <? header( "HTTP/1.1 301 Moved Permanently" ); header( "Status: 301 Moved Permanently" ); header( "Location: http://www.yourdomain/yourrootdirectory/" ); exit(0); // This is Optional but suggested, to avoid any accidental output ?> Replace yourdomain with your domain name, and yourrootdirectory with the oscommerce install directory (normally catalog). Hope this helps. Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful. Link to comment Share on other sites More sharing options...
Mrs Minx Posted November 5, 2006 Author Share Posted November 5, 2006 hi domain name is: equineinternetsupplies.co.uk The directory structure is: mydomain/catalog/index.php (or whatever file) Should I be taking all contents of catalog and dumping those directly in root then for it to work? When you say create a php file, what do I call it and which directory do I put it in? Thanks :) ---------------------------------------- Minxy :) "Keep plodding on to achieve your dreams" Link to comment Share on other sites More sharing options...
ammmze Posted November 5, 2006 Share Posted November 5, 2006 hi domain name is: equineinternetsupplies.co.uk The directory structure is: mydomain/catalog/index.php (or whatever file) Should I be taking all contents of catalog and dumping those directly in root then for it to work? When you say create a php file, what do I call it and which directory do I put it in? Thanks :) The easiest way is to leave it where it is and remove the index.html page and in place of it put an index.php page and inside the file write or copy/paste <?php header( "HTTP/1.1 301 Moved Permanently" ); header( "Status: 301 Moved Permanently" ); header( "Location: http://www.equineinternetsupplies.co.uk/catalog/" ); exit(0); // This is Optional but suggested, to avoid any accidental output ?> What this does is when the domain is entered into an addressbar it will load that index.php file that will be in the root directory and that file redirects them to the store Link to comment Share on other sites More sharing options...
Mrs Minx Posted November 5, 2006 Author Share Posted November 5, 2006 Hey All, Thank you so much. I took your code, put it in the index.php and put that in root directory and it is now working brilliantly. I have tested in IE and Firefox and both working fine. Thanks again - that has had us stumped for months :) ---------------------------------------- Minxy :) "Keep plodding on to achieve your dreams" Link to comment Share on other sites More sharing options...
shooter-boy Posted November 5, 2006 Share Posted November 5, 2006 Hey All,Thank you so much. I took your code, put it in the index.php and put that in root directory and it is now working brilliantly. I have tested in IE and Firefox and both working fine. Thanks again - that has had us stumped for months :) Hey, Good to hear! This is basic redirection, and won't affect your google rankings or anything too (so i'm told). Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful. Link to comment Share on other sites More sharing options...
Mrs Minx Posted November 6, 2006 Author Share Posted November 6, 2006 ahh so it's still re-directing is it? Does that mean dial-up users will be stuck there for hours? (It's too early ad cold outside)! ---------------------------------------- Minxy :) "Keep plodding on to achieve your dreams" Link to comment Share on other sites More sharing options...
shooter-boy Posted November 6, 2006 Share Posted November 6, 2006 No no... there is nothing to display in the index page, so the redirection is the first things that will happen (well, the only thing!). It is a very basic command, so it might take another 0.04seconds to process, but I wouldn't imaging much more than that. I doubt anyone would even notice! Rob Rob Bell - Inspired Graphix Customising osCommerce in Australia, and the world! View my profile for web and email links. I'm sorry, but i cannot offer Free support via PM etc, and osCommerce forums prohibit me from putting any reference to paid support in my signauture. However viewing my profile may provide links to my website or something like that which you may find useful. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.