muraduk Posted May 30, 2004 Share Posted May 30, 2004 Hi.... wonder if anyone can help I have created and installed the shop called http://www.shoppingmaze.net but i don't get the page up when i insert this URL, i just get the folders and files that are held on the server... if i click on catalog from here then the home page appears witha URL OF http://www.shoppingmaze.net/catalog/ Please can anybody explain to me what i've done wrong..... and point me in the right direction.... Thank you in advance.... Murad Esmail Link to comment Share on other sites More sharing options...
zareen Posted May 30, 2004 Share Posted May 30, 2004 You have installed in the catalog directory, which is a fairly normal install. You either have to install in the root directory, or put in a php redirect in your index file directing the browser to the catalog directory. Link to comment Share on other sites More sharing options...
zareen Posted May 30, 2004 Share Posted May 30, 2004 Here's some php code that should work. Put this in index.php in main directory, and the delete index.html or index.htm if they happen to be there. ---------------------------------------------------- <?php $test=strtolower($HTTP_HOST); $file=""; $url=""; if ($test=="www.shoppingmaze.net") $url="http://www.shoppingmaze.net/catalog/"; elseif ($test=="shoppingmaze.net") $url="http://shoppingmaze.net/catalog/"; // catch all else $url="http://$test/catalog/"; // the actual redirect code.; if ($file =="") header("Location: $url"); else { include($file); } ?> Link to comment Share on other sites More sharing options...
muraduk Posted May 30, 2004 Author Share Posted May 30, 2004 Hi Connie... When you mean the index file in the main directory.... which folder do you mean.... sorry to sound an idiot... but OSCommerce to me is completely new.... thoughi would know my way around HTML.... PHP has me in a spin.. please can you explain a bit more clearly, what i should have done originally i.e when youi say that i have installed in the catalog folder.... is this correct or not, and what shoukd i have done... Secondly the code that you have provided, where and which page does it go on, and can i paste it anywhere on the page... Thankyou in advance... Murad Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.