Guest Posted January 27, 2003 Share Posted January 27, 2003 Step 1 - Rename catalog/default.php to index.php Step 2 - Rename catalog/includes/languages/YOUR LANGUAGE/default.php to index.php Step 3 - Open catalog/includes/application_top.php and change define('FILENAME_DEFAULT', 'default.php'); to define('FILENAME_DEFAULT', 'index.php'); Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2003 Share Posted January 27, 2003 Will this make it to when a customer types in my domain. www.mydomain.com that it will go to my default.php page? Link to comment Share on other sites More sharing options...
Guest Posted January 27, 2003 Share Posted January 27, 2003 If you have your catalog intalled in the root directory you will be able to use http://www.MySite.com and index.php wil be your start page. PS- Please read the sticky at the top of this forum. It is for Tips and Tricks and not for questions. Link to comment Share on other sites More sharing options...
Ramesh Posted January 27, 2003 Share Posted January 27, 2003 Or try this -> http://www.oscommerce.com/forums/viewtopic.php?t=32695 Special Effects / 3d + Flash Link to comment Share on other sites More sharing options...
lhn Posted February 26, 2003 Share Posted February 26, 2003 :?: :cry: I've tried all the methods suggested and I still cannot display the /default.php page when dormain name is entered www.mydormain.com Did I missed something? Since i just started, can I just download osCommerce and start over? Thanks. -Ln Link to comment Share on other sites More sharing options...
emanresu Posted February 26, 2003 Share Posted February 26, 2003 Hi Do you still have index.htm or index.html or default.htm in the root. These all take precedent over *.php. Citizen of US Minor Outlying Islands Link to comment Share on other sites More sharing options...
lhn Posted February 27, 2003 Share Posted February 27, 2003 no, all i have is 1 file ".lastlogin" and the rest is folders. Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 Suggest you head over to http://www.guide.oscdox.com There is a good online guide for the installation and modification of OSC. It will give you step by step instructions on how to install your shop at the root level. Link to comment Share on other sites More sharing options...
lhn Posted February 27, 2003 Share Posted February 27, 2003 I though I followed the installation instructions on www.guide.oscdox.com, may I didn't. Is it ok to start over then? Thanks. Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 If you haven't made any major changes and just want to start over you can. If you're going to do that I would suggest removing the OSC stuff you already have installed so that there isn't any confusion.l Link to comment Share on other sites More sharing options...
webhost Posted March 4, 2003 Share Posted March 4, 2003 you can also go inside your cpanel and activate the redirect to auto from index to default.php page. its a feature well used over here in Melbourne. Link to comment Share on other sites More sharing options...
Still Waiting Posted March 11, 2003 Share Posted March 11, 2003 Hi, Why was default.php used in the first place? Just to make the software harder to get running for some users? Link to comment Share on other sites More sharing options...
Ajeh Posted March 11, 2003 Share Posted March 11, 2003 Hi Do you still have index.htm or index.html or default.htm in the root. These all take precedent over *.php. Actually if you set up an .htaccess file and put default.php and index.php first, they come before the .html .htm etc. Link to comment Share on other sites More sharing options...
Druide Posted March 15, 2003 Share Posted March 15, 2003 thanks for this GREAT but still simple TIP, took me 2,5 hours ++ to find it ....lol but i am happy now....AGAIN after looking at it I thought, i knew that already :shock: :shock: :lol: Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
Ajeh Posted March 15, 2003 Share Posted March 15, 2003 memories ... they slowly come back to us when triggered by the answer, eh? 8) Link to comment Share on other sites More sharing options...
lotug Posted March 19, 2003 Share Posted March 19, 2003 Step 1 - Rename catalog/default.php to index.php Step 2 - Rename catalog/includes/languages/YOUR LANGUAGE/default.php to index.php Step 3 - Open catalog/includes/application_top.php and change define('FILENAME_DEFAULT', 'default.php'); to define('FILENAME_DEFAULT', 'index.php'); Will this also work for the Admin folder? Link to comment Share on other sites More sharing options...
Guest Posted March 19, 2003 Share Posted March 19, 2003 The admin is already using index.php. Link to comment Share on other sites More sharing options...
guanche Posted March 23, 2003 Share Posted March 23, 2003 Step 1 - Rename catalog/default.php to index.php Step 2 - Rename catalog/includes/languages/YOUR LANGUAGE/default.php to index.php Step 3 - Open catalog/includes/application_top.php and change define('FILENAME_DEFAULT', 'default.php'); to define('FILENAME_DEFAULT', 'index.php'); I am on the most recent OSC2.2 SnapShot (3/22/03) and followed Steps #1 & #2 above, when I got to Step#3 I searched catalog/includes/application_top.php but there is no define('FILENAME_DEFAULT', 'default.php'); in there....anyone know why? I also placed in my .htacess DiRectoryindex index.shtml index.html index.htm index.php default.php /missing.html AddHandler server-parsed .shtml AddHandler server-parsed .html AddHandler server-parsed .htm I am getting this error when trying to access the my shop: Warning: main(includes/languages/english/default.php) [function.main]: failed to create stream: No such file or directory in /home/universa/public_html/shop/index.php on line 33 Fatal error: main() [function.main]: Failed opening required 'includes/languages/english/default.php' (include_path='.:/usr/local/lib/php') in /home/universa/public_html/shop/index.php on line 33 Any suggestions as to why this is not working for me? Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2003 Share Posted March 23, 2003 Good Morning Joe! The Dev Team pulled a sneaky on us.... :D The define FILENAME used to be in application_top.php and is now in the NEW file called filenames.php Change your define in filenames and you'll be back up and running. Enjoy! Link to comment Share on other sites More sharing options...
mattice Posted March 23, 2003 Share Posted March 23, 2003 The Dev Team pulled a sneaky on us.... :D The define FILENAME used to be in application_top.php and is now in the NEW file called filenames.php In order to keep up / get an idea of what goes on in development you can subscribe to the commit mailinglist. It will show you what has been changed in CVS along with the diffs (differences) and comments. http://lists.sourceforge.net/lists/listinf...nfo/tep-commits "Politics is the art of preventing people from taking part in affairs which properly concern them" Link to comment Share on other sites More sharing options...
Guest Posted March 23, 2003 Share Posted March 23, 2003 Mattice, You are right, I will go now and subscribe to the commits list. :D Link to comment Share on other sites More sharing options...
pwilliamson Posted March 29, 2003 Share Posted March 29, 2003 Two easy solutions: 1. Create index.html in your site root and insert a meta-refresh tag to run default.php 2. If you are not an ISP, ask your ISP to change your document root to the catalog folder, also ask him to change the index options to include default.php. Both should be done in httpd.conf No.2 is by far the best, some ISPs don't permit the use of .htaccess, anything running apache has an httpd.conf. :D If nothing changes - everything stays the same - http://e-commerce.e-businesshosting.co.uk Link to comment Share on other sites More sharing options...
Ajeh Posted March 29, 2003 Share Posted March 29, 2003 Search Engines really are not keen on that refresh idea. They tend to ignore you when you do that. The .htaccess is a good idea and if you want the catalog to be your main page ... then put it in your root. :D Link to comment Share on other sites More sharing options...
pwilliamson Posted March 29, 2003 Share Posted March 29, 2003 Agreed, meta-refresh will kill a simplistic SE strategy. As I said, more and more ISPs are not allowing .htaccess, in this instance you are all out of options. :wink: If nothing changes - everything stays the same - http://e-commerce.e-businesshosting.co.uk Link to comment Share on other sites More sharing options...
LordMikron Posted April 3, 2003 Share Posted April 3, 2003 You might want to ask your host to add the default.php to the DirectoryIndex setting in the httpd.conf file of Apache or if your running the server yourself just edit the /apache/conf/httpd.conf file yourself and search for "DirectoryIndex" I have mine setup like this DirectoryIndex default.php index.php It will look for the default.php file first Hope this helps. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.