mlulm Posted December 31, 2002 Posted December 31, 2002 I moved the shopping cart to the root directory. Then I renamed default.php to electronics.php and made all the changes to get it working. It works fine when called directly. But I wanted the root to jump to it, so I had my server adminstrator direct the DirectoryIndex to it. Now when we call it with the root url it crashes calling the file name which now has cloned itself onto itself numerous times.
burt Posted December 31, 2002 Posted December 31, 2002 You only need to change it on the server (as you have done). Then open up application_top.php and change; define('FILENAME_DEFAULT', 'default.php'); to define('FILENAME_DEFAULT', 'electronics.php'); Upload your new application_top.php and there we are. You've gone down the hard route first. Always take the route of least resistance ;)
burt Posted December 31, 2002 Posted December 31, 2002 Re-read your post. Have you done the above ? Just use a .htaccess in your root, rather than have the admin do it... or use a index.php with a PHP header...easy.
mlulm Posted December 31, 2002 Author Posted December 31, 2002 Yes I had already done the application_top.php change. I probably should have done it with .htaccess The admin retried it and it started working. Thanks
burt Posted December 31, 2002 Posted December 31, 2002 The admin retried it and it started working. Did he tell you why it did not work ? This would be useful to know... Thanks.
mlulm Posted December 31, 2002 Author Posted December 31, 2002 He didn't do anything different it just started working.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.