Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Question about directory structure (please help)


Still Waiting

Recommended Posts

I am running a snapshot from a couple months back. Here is my question.

 

My host requires me to put secure docs in a different folder. So when I access my site with:

 

http://www.mysite.com it pulls the contents from

/usr/local/home/mysite/httpdocs

 

But when I access it secure with:

 

https://www.mysite.com it pulls the contents from

/usr/local/home/mysite/httpsdocs

 

So my question is this. CurrentlyI have 2 complete copies of OSC uploaded to my server. One in the httpdocs folder, and one in the httpsdocs folder. My problem is that when users log in, and ad something do their cart, then go to checkout (transfering them to https://) it makes them log in again.

 

Is there a simple fix for this? Do I HAVE to run 2 full copes of OSC because of my hosts configuration?

 

Thanks

Link to comment
Share on other sites

So would this need to be different for each copy of OSC i am running?

 

Like for the one in the httpsdocs (secure) folder I would want to change $DOCUMENT_ROOT to /usr/local/home/mysite/httpsdocs

 

and for the httpdocs (non secure) folder I would want to change $DOCUMENT_ROOT to /usr/local/home/mysite/httpdocs

 

Is my thinking correct on this?

 

Thanks

Link to comment
Share on other sites

Good question ... :shock:

 

I don't use those funny servers that require two copies myself ... and on those I have worked on, I just fuss around with it until the dang thing works right for me ...

 

I am sure someone in a similar boat, such as yourself, will come up with a better answer for you ... :D

Link to comment
Share on other sites

Somewhere something is not configured right ... whether using 1 or two locations for the secure/non-secure there is one login.

 

I just cannot recall the trick ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...