Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Question on haveing store load from domain name url


Starsurf

Recommended Posts

Posted

Hi,

 

Currently when you go to my sites URL, example(www.yourdomain.com) by default in will open index.htm, not the index.php which displays the main page of my ecommerce store. I could put the meta tag refresh, to redirect the main page to the index.php url store, but is there a better way to have the main page of the store load when you go to the website’s address?

 

Thanks

Posted

change the default document from index.html to index.php in the web server config. if you are using iis for windows, you can set the index.php to order 0 and index.html to order 1, if apache, find the http.conf file and find the line that reads 'DirectoryIndex index.html' and change to 'DirectoryIndex index.php'. hope this helps :) :blush:

Posted

I'm so glad this was asked today, I'm trying to figure out the same thing. When you say to find the directory index do you mean with the web hosting service that I'm using? I'm looking within my web hosting (ipower) control panel and cannot find anything that pertains to changing this setting.

 

I've previously tried simply to change the "set the home page" to the index.php instead of the index.html within Golive but it's not changing the index.html as the default homepage.

 

Should I call my webhosting to find this directory index so I can change the configuration? Could it be something my webhosting has to do or am I looking in the wrong place?

 

 

 

change the default document from index.html to index.php in the web server config. if you are using iis for windows, you can set the index.php to order 0 and index.html to order 1, if apache, find the http.conf file and find the line that reads 'DirectoryIndex index.html' and change to 'DirectoryIndex index.php'. hope this helps :) :blush:
Posted

Wow, I just figured it out as soon as I typed the question. I'll post for others who are having the same question.

 

I just found the home page configuration settings within my .htaccess section of my control panel (with ipower web hosting). And they provided a nice list of acceptable home pages they looks for, i.e. index.html, index.php, index.php3, etc. But then it reads like what you mentioned about the order it looks for. So my servers are looking for the index.html BEFORE the index.php. So, what I'll do is remove my index.html page from my server and all it had on that page the a "opening soon" page for the store. So, that way the servers will go to the next in line to look and the only file I have on their list will be the the index.php!

 

YAYYY!

 

Thanks for steering me in the right direction. I have the site done and just didn't know how to make it go live on the home page!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...