Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

why does this happen


Simplyeasier

Recommended Posts

Hi

 

I installed my site in catalog under root

 

In root I used to have an index.htm which started up when a browser came avisitin'

 

I changed the index.htm to index.php when I added the contrib to allow osC content outside the cart.

 

Now if i just type in http://www.simplyeasier.com I get my index page loaded WITHOUT my logo, buttons for enter the shop etc.

 

if however I type in http://www.simplyeasier.com/index.php - everything is fine.

 

I thought browsers will look for index files in some sort of hierarchy moving on until they find one they can load thus index.html, index.htm, index.shtml, index.php etc etc

 

Can someone tell me why loading the php file without explicit reference cause the page to laod without images - yet when I use explicit referencing everything is OK ?

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

Hi

 

I installed my site in catalog under root

 

In root I used to have an index.htm which started up when a browser came avisitin'

 

I changed the index.htm to index.php when I added the contrib to allow osC content outside the cart.

 

Now if i just type in http://www.simplyeasier.com I get my index page loaded WITHOUT my logo, buttons for enter the shop etc.

 

if however I type in http://www.simplyeasier.com/index.php - everything is fine.

 

I thought browsers will look for index files in some sort of hierarchy moving on until they find one they can load thus index.html, index.htm, index.shtml, index.php etc etc

 

Can someone tell me why loading the php file without explicit reference cause the page to laod without images - yet when I use explicit referencing everything is OK ?

 

Charles

 

OK solved - heres the lowdown

 

If you have php in an html page - the page will NOT parse unless you go through unmentionable hoops to do with Apache and Server side includes - there are many theories out there including amending your .htaccess file - but I tried them all and non worked !

 

If you put the full reference in you are OK - but do you really want to tell your visitors to put http://www.yourdomain.com/index.php or htm as the case may be ? I think not :D

 

In my case I stumbled on a solution which is using the url http://www.simplyeasier.com/ - NOTE the trailing slash - this will allow me to store a php file in root and when called by this url it will parse properly

 

hth any1 else in the same boat

 

Charles

A kite flies highest AGAINST the wind !

 

"Life should NOT be a journey to the grave with the intention of arriving safely in an attractive and well preserved body, but rather to skid in sideways, a lover in one hand, martini in the other, body thoroughly used up, totally worn out and screaming ~ WOO HOO!! What a ride!"

Link to comment
Share on other sites

OK solved - heres the lowdown

 

If you have php in an html page - the page will NOT parse unless you go through unmentionable hoops to do with Apache and Server side includes - there are many theories out there including amending your .htaccess file - but I tried them all and non worked !

 

If you put the full reference in you are OK - but do you really want to tell your visitors to put http://www.yourdomain.com/index.php or htm as the case may be ? I think not  :D

 

In my case I stumbled on a solution which is using the url http://www.simplyeasier.com/ - NOTE the trailing slash - this will allow me to store a php file in root and when called by this url it will parse properly

 

hth any1 else in the same boat

 

Charles

 

You can also try this. Set up an index.html file and then redirect from the html to the index.php file is located.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...