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!
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 ...
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!
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
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
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>
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.
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!!
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!!
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:
The installation mannual says to create an .htaccess file that says thisCode:# $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>
What should I do???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
.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
.htaccess files (or "distributed configuration files") provide a way to make configuration changes on a per-directory basis. A file, containing one or more configuration directives, is placed in a particular document directory, and the directives apply to that directory, and all subdirectories thereof.
Thanks for adding that in here...I was having the same problem (Not knowing how to make index.php default) and that little snippet worked very easily for me too!! :POriginally Posted by ReginaStelling
Bookmarks