spikesforu Posted July 12, 2003 Share Posted July 12, 2003 I wantd to see if anybody knows how i can set my store up so that when you hit the domain name it the site comes out. Instead of having to write host/catalog/default.php Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 When you install the store, it asks you in what directory you have the catalog. If you replace the default /catalog/ with /, then you will not have catalog in the URL. I'm not sure of the exact configuration parameters, but you get rid of the default.php (or index.php) by modifying httpd.conf or .htaccess (on an Apache server) to default to default.php (the normal default is something like index.html). Good luck, Matt Quote Link to comment Share on other sites More sharing options...
spikesforu Posted July 12, 2003 Author Share Posted July 12, 2003 When you install the store, it asks you in what directory you have the catalog. If you replace the default /catalog/ with /, then you will not have catalog in the URL. I'm not sure of the exact configuration parameters, but you get rid of the default.php (or index.php) by modifying httpd.conf or .htaccess (on an Apache server) to default to default.php (the normal default is something like index.html). Good luck, Matt[/quote I did that, however I still have to put domainname/defult.php to see the store. I want to omit the default.php Quote Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 I'm not sure of the exact configuration parameters, but you get rid of the default.php (or index.php) by modifying httpd.conf or .htaccess (on an Apache server) to default to default.php (the normal default is something like index.html).You did this? What did you put in .htaccess or the httpd.conf that is not working? Good luck, Matt Quote Link to comment Share on other sites More sharing options...
ibandyop Posted July 14, 2003 Share Posted July 14, 2003 I wantd to see if anybody knows how i can set my store up so that when you hit the domain name it the site comes out. Instead of having to write host/catalog/default.php See my note here: http://www.oscommerce.com/forums/viewtopic.php...ighlight=[/url] Quote ibandyop Link to comment Share on other sites More sharing options...
ibandyop Posted July 14, 2003 Share Posted July 14, 2003 I wantd to see if anybody knows how i can set my store up so that when you hit the domain name it the site comes out. Instead of having to write host/catalog/default.php Sorry, I think I misunderstood your questio. From Admin | Search Engine Friendly URLS - Turn this ON (true) This may give the desired results. Quote ibandyop Link to comment Share on other sites More sharing options...
Rumble Posted July 14, 2003 Share Posted July 14, 2003 Why not set up a meta refresh on your index.html page? So when someone hits your domain name 'www.yourdomainname.com' they get redirected automatically to your shop homepage. ie in your head tags place this code <meta http-equiv="refresh" content="1; url=catalog/default.php"> Quote Reddy to Rumble Thank you osCommerce and all who Contribute to her! Link to comment Share on other sites More sharing options...
wizardsandwars Posted July 14, 2003 Share Posted July 14, 2003 Why not set up a meta refresh on your index.html page? So when someone hits your domain name 'www.yourdomainname.com' they get redirected automatically to your shop homepage. ie in your head tags place this code <meta http-equiv="refresh" content="1; url=catalog/default.php"> Because then Google will not index you. Google will not index any URL that the user can not return to Google with one click of the back button. Quote ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment Share on other sites More sharing options...
JayPee Posted July 14, 2003 Share Posted July 14, 2003 I did that, however I still have to put domainname/defult.php to see the store. I want to omit the default.php There used to be a section in the FAQ about changing the 'default.php' file name to 'index.php' which will produce the result you desire (as long as you don't also have an index.html file which takes precedence) From Memory: You need to change in /includes/application_top.php define('FILENAME_DEFAULT', 'default.php'); define('FILENAME_DEFAULT', 'index.php'); Rename default.php to index.php and rename /includes/languages/english/default.php to index.php Quote Link to comment Share on other sites More sharing options...
wizardsandwars Posted July 14, 2003 Share Posted July 14, 2003 as long as you don't also have an index.html file which takes precedence Actually, on my server, index.php takes precedence over index.html. I'm not sure if that's a special setting we have or something, though. Quote ------------------------------------------------------------------------------------------------------------------------- NOTE: As of Oct 2006, I'm not as active in this forum as I used to be, but I still work with osC quite a bit. If you have a question about any of my posts here, your best bet is to contact me though either Email or PM in my profile, and I'll be happy to help. Link to comment 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.