This is a discussion on index.html the default page help within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; guys, I'm new to oscommerce I have installed it and set up all successfuly, however I have problem with index.html ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| guys, I'm new to oscommerce I have installed it and set up all successfuly, however I have problem with index.html page, my server direct any http enquiry to the default page index.html which has nothing on, how I can change this so it load oscommerce default page which I assume it is index.php or catalog.php right. any comments appreciated. |
| Sponsored Links | ||
| ||
|
#2
| |||
| |||
| I know you can use redirection method. by typing this in the index.html file, however I don't like redirection I would like all viewers to see /catalog page instead, which file should I edit to make it happen? <html> <head> <META Http-equiv="refresh" Content="0; Url=https://www.yoursite.com/catalog"> <title> Transfering to site. (Enter your own title here) </title> </head> <body bgcolor=ffffff> <center> <br> <br> <b>Please wait while you are transfered to our site</b><br> Or click <a href="http://www.yoursite.com/catalog">http://www.yoursite.com/catalog</a> </center> </body> <html> any reply appreciated. |
|
#3
| ||||
| ||||
| use .htaccess: DirectoryIndex index.php index.html Or to redirect to the catalog dir: DirectoryIndex catalog/index.php
__________________ Michael Sasek osCMax Developer
|
|
#4
| |||
| |||
| I did use .htaccess and put this entry in it DirectoryIndex index.php index.html still didn't work |
|
#5
| ||||
| ||||
| It needs to be in the base public_html dir. If you have osCMax installed in the catalog dir, you need to use the second one example: DirectoryIndex catalog/index.php
__________________ Michael Sasek osCMax Developer
|
|
#6
| |||
| |||
| NO Michael I have oscommerce 2.2 installed but I have loaded the catalog in public_html as /public_html/catalog/ which contains catalog and admin folders plus all files, so another word I didn't install it on the root / but sub folder with the data base set up and everything, if I have to move all folders and files to root will I lose url connections and database link, what would you suggest should i istall it again from the root directory or it would be all right if I just moved all the files to root, what do you suggest mate. |
|
#7
| ||||
| ||||
| Hi, If you just move all the folders n files to the root, you will obviously lose url and database links. The links can be corrected by modifying the configure.php file. However as you are a newbiew, I would suggest you to reinstall the pacakge to the root. It won't take much time and effort to do that.
__________________ Regards, developer X Web Developer [color=blue]HTTPPoint Web Talk - Discuss about Web Design, Web Hosting, Programming & Web Development |
|
#8
| ||||
| ||||
| Ok, maybe I am not understanding you, but what I suggest in htaccess: DirectoryIndex catalog/index.php That needs to be put in an .htaccess file the public_html root dir, not your shopping cart. What the above statement does is automatically forward all requests from http://yoursite.com to http://yoursite.com/catalog/index.php. This is the easiest fix there is. 2 minutes and it is done. From what you are asking, that does EXACTLY what you want. Redirect all traffic to your catalog/index.php automatically without having to move ANY files at all.
__________________ Michael Sasek osCMax Developer
|
|
#9
| |||
| |||
| Or even easier, from cPanel set up a redirect. Then you don't need to edit any files. |
|
#10
| |||
| |||
| Thanks for the great information on this! It sorted the same problem for me! |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| using header/index/footer.html for a own template | doumawis | osCommerce 2.2 Modification Help | 0 | 02-06-2005 03:14 PM |
| how to add boxes to index.html | atech | osCommerce 2.2 Modification Help | 4 | 11-15-2004 02:25 PM |
| adding HTML to the center index page? | khayyamg | osCommerce 2.2 Modification Help | 2 | 08-04-2004 07:06 PM |
| Default.php or index.php? | Dr_Evil | osCommerce 2.2 Installation Help | 2 | 04-17-2003 05:56 PM |
| Default.php/index.php | ativan | osCommerce 2.2 Installation Help | 6 | 11-19-2002 04:27 PM |