This is a discussion on make catalog/index.php the default homepage of my website... within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; How do I change my default page to point to the catalog/index.php page? Is this a big deal? Do I ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| How do I change my default page to point to the catalog/index.php page? Is this a big deal? Do I have to reinstall or ask my webhosting company to change the .conf file?? EEEK! |
| Sponsored Links | ||
| ||
| |
|
#2
| |||
| |||
| I'm ready to go live, and my shopping cart is in catalog/ folder... How can I make my website automatically point to catalog/index.php? Will I have to reinstall or change some .conf file? Is this a big deal.... Alll's I want is for the user to automatically be pointed to catalog/index.php when he types in www.mydomain.com |
|
#3
| |||
| |||
| Hi All I did was create a shopping cart icon on my first page and establish a link to the catalog/index page. When the cart is clicked the shopper is sent to the OSC catalog. I use Adobe GoLive but I am sure that what ever authoring software you use is fine. Dave |
|
#4
| |||
| |||
| Use this to make your index.html (or whatever is loaded by default) <html> <head> <title></title> <META http-equiv="refresh" content="0;URL=http://www.mydomain.com/catalog/index.php"> </head> <body> </body> </html> |
|
#5
| |||
| |||
| or if you have access to your .htaccess file you would just change the DirectoryIndex to read DirectoryIndex /catalog/index.php This is how it is done by professional webmasters. |
|
#6
| |||
| |||
| Somebody told me to do this...and it works good: Replace the index.htm in the root folder with a new index.php. Then put the following code: <? Header("Location: catalog/index.php"); ?> It's cool! It bounces immediately to my catalog folder. Pretty neat!! |
|
#7
| |||
| |||
| Ya know...I called my hosting company and did this at first, and maybe they didn't do it right, or something, but it was pulling up my catalog/index.php page, but all the file references were hosed for some reason, I think it was because of the base href. Anyway, I freaked out, and told him to change it back...and another guy told me to do this: Make an index.php page in the root and do this: <? Header("Location: catalog/index.php"); ?> And that's working great!! |
|
#8
| |||
| |||
| Hello I am confused by this topic. I just installed OSC on a virtual server. My site is hockeyheadquarters.com OSC is in a folder called hockeyheadquarters.com/catalog the url works fine and I don't have an .htaccess file as instructed by the installation mannual. I suspect that my hosting company automatically configured the apache server to load index.php and there is no need for the .htaccess file. Can someone tell me if I am correct? Also, there is already an .htaccess file in that directory.. it came with OSC but it looks a lot different than what the manual instructs you to do. So if you were to follow the advice of the mannual then you would be overwriting the current .htaccess file That file reads as follows: Code: # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
Code: DirectoryIndex index.php index.htm index.html For now I have left the .htaccess file that came with OSC should I even bother putting in the one the mannual talks about? I am very confused. Eric B |
|
#9
| |||
| |||
| .htaccess file can have N number of commands or directives that the webmaster desires to implement, so if u add the following line which does the redirection for you, it should not affect the working of the code above, check this out, http://httpd.apache.org/docs/mod/mod_dir.html also, i would check if your server has the default set to index.html or .php or what not 1st....and if it is...all u need to do is create the index.html and have a header redirect in it.... quote from apache.org Quote:
|
|
#10
| |||
| |||
| Quote:
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Make us your homepage link - Does anyone know how to make? | markymrk22 | osCommerce 2.2 Modification Help | 1 | 06-05-2005 09:49 AM |
| How to make a index.php page with a another name in OSMAX? | doumawis | osCommerce 2.2 Modification Help | 2 | 03-01-2005 01:16 AM |
| A own oscomshop homepage+pages to make how?:: who nows? | doumawis | osCommerce 2.2 Modification Help | 6 | 02-01-2005 10:32 AM |
| Modifying my homepage with some items from the catalog pages | Zych | osCommerce 2.2 Modification Help | 1 | 07-22-2004 12:53 PM |
| Default.php or index.php? | Dr_Evil | osCommerce 2.2 Installation Help | 2 | 04-17-2003 05:56 PM |