amenra Posted November 28, 2003 Share Posted November 28, 2003 How do you make the catalog index page the home page Link to comment Share on other sites More sharing options...
quetzlcoatl Posted November 28, 2003 Share Posted November 28, 2003 If you are referring to when a user types in "www.mysite.com" they should see your catalog home page, then paste this code into your www.mysite.com/index.html (or .php, whatever it is) <script language="JavaScript"> <!-- window.location.replace('http://www.mysite.com/catalog'); //--> </script> This will redirect users to your catalog without trapping them. Change mysite.com to your own web address. Link to comment Share on other sites More sharing options...
jpf Posted November 28, 2003 Share Posted November 28, 2003 The OTHER option if you want to load as www.mysite.com/index.php and not www.mysite.com/catalog/index.php then install as '/' and not '/catalog/'....Or MOVE everything from '/catalog/' to '/' or your web site root then CHANGE both configure.php file to match. Good Luck Link to comment Share on other sites More sharing options...
Databuilder Posted November 28, 2003 Share Posted November 28, 2003 Is there any advantage to this: <script language="JavaScript"> <!-- window.location.replace('http://www.mysite.com/catalog'); //--> </script> over this: <meta http-equiv="Refresh" content="0; URL=http://www.mysite.com/catalog"> Link to comment Share on other sites More sharing options...
quetzlcoatl Posted November 28, 2003 Share Posted November 28, 2003 Yes, the advatage is, if you use the Meta refresh, users will get trapped at your site. For instance, if they try to click "back" it will continue to try to reload the page, unless they click the back button really fast twice. Trapping users will make them very angry and unlikely to order from you. The window replace will not trap users. Link to comment Share on other sites More sharing options...
quetzlcoatl Posted November 28, 2003 Share Posted November 28, 2003 One more thing, the window replace sometimes doesn't work if a user has their browser set to "high" security, but you still don't want to trap them. Link to comment Share on other sites More sharing options...
quetzlcoatl Posted November 29, 2003 Share Posted November 29, 2003 You can also redirect users in a .htaccess file, just put in the line Redirect /home http://www.mysite.com/catalog/ where home is your root, the exact path depends on your host Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.