Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

https .htaccess help?


ptocheia

Recommended Posts

Hello!

 

I'm not sure if this is being posted in the right area, but it is a configuration issue so here goes:

 

Oscommerce has been working fine for the ecommerce site I'm working on, it was even getting close to being done. Then I decided I need to make a custom error page, and go to put an errordocument redirect into the .htaccess file in the root directory. I check to see if there's already an .htaccess file uploaded, but I see none. Which I think is strange, but I didn't remember there being one aside from the Admin one anyhow. So I make a new one and upload it, only to have me not see the uploaded one on the server. After a brief looking around online, I realise that apparently there exist servers that don't automatically show hidden files like .htaccess (I've never encountered that before, and I'm working with a new-to-me hosting company here), and that I more likely then not overwrote the preexisting .htaccess file.

 

So, I can no longer see my https pages. I get a '500 internal server error'. Here's a sample of the problem: https://fisher.globat.com/~suvanacards.com/...ut_shipping.php (this is Globat's particular setup for secure pages)

The non-secure pages, such as: http://www.suvanacards.com/index.php , are working fine. I'm guessing that in the process of overwriting the .htaccess file, it overwrote whatever was in the original file that told the server how to deal with secure pages? I've poked all around the internets for a solution, but keep coming up empty. I'm a bit at a loss here, I'm not hugely knowledge about .htaccess and so I'm not sure what I have to put back in there to make this work again (assuming that's even the problem!).

 

So, I appreciate any advice anyone can throw at me!

 

Thanks

Virginia

Link to comment
Share on other sites

It would probably help if you could post up relevant errors. I know enough about .htaccess but not enough about osCommerce to be sure but I'd assume:

 

#<IfModule mod_setenvif.c>

# <IfDefine SSL>

# SetEnvIf User-Agent ".*MSIE.*" \

# nokeepalive ssl-unclean-shutdown \

# downgrade-1.0 force-response-1.0

# </IfDefine>

#</IfModule>

 

thats there by default but commented out is the key part of the .htaccess you might have removed.

Link to comment
Share on other sites

If only I had some relevant errors to post! I'm waiting on my hosting company to get back to me on why their recommended method of retrieving errors (using a prepend.php file) is giving me zilch. Which is not helpful at all here, unfortunately.

 

Anyhow, I gave your code chunk a whirl, it didn't do anything though =(

 

 

It would probably help if you could post up relevant errors. I know enough about .htaccess but not enough about osCommerce to be sure but I'd assume:

 

#<IfModule mod_setenvif.c>

# <IfDefine SSL>

# SetEnvIf User-Agent ".*MSIE.*" \

# nokeepalive ssl-unclean-shutdown \

# downgrade-1.0 force-response-1.0

# </IfDefine>

#</IfModule>

 

thats there by default but commented out is the key part of the .htaccess you might have removed.

Link to comment
Share on other sites

If Globat put a .htaccess file at your shared ssl location then they will have to restore it. Until they do so there's nothing you can do about it.

 

However, I doubt very much that Globat put a .htaccess file in the shared ssl root of your website, because the https and http root are usually one and the same. So unless you have both an httpdocs folder and an httpsdocs folder then it's very unlikely that there ever was a .htaccess file placed there by Globat.

 

The error is likely to have been caused by the .htaccess file you uploaded. Try deleting it and see what happens. If the https part of the site starts to work again then the problem was the .htaccess file.

 

Vger

Link to comment
Share on other sites

Apparently it was the ErrorDocument redirect that was causing the problems. I heard back from Globat, they replaced my faulty .htaccess file with one that had everything commented out. I hadn't thought that the error redirect could possibly have broken the secure pages, any idea why this might be?

 

Either way, it's working now, even if I don't completely understand why. I appreciate the advice I've gotten here.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...