Sub Directory installation

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
10 years ago
Currently we have a specific problem with a site hosted in a sub-directory and are hoping if anyone can give us any assistance.

We are running a no-source version of nopcommerce 3.50.

The problem is occurring on the way the URL is formatting for the content folder and some other parts of the site

The store is currently located on a sub-directory such as: www.myabc.com/store. the store URL set inside of store settings are

http: http://www.myabc.com/store

https: https://www.myabc.com/store

Thus when the user receives a validation link or goes to the site it formats it with an extra store in the url. The users link will look like http://www.myabc.com//store/store/customer/activation?token=5fcb0816-1d47-48c8-bd81-44b165e34951&email=xxxx%40xxx.net


This is a problem with the images in the content folder and some of the variables. All have an extra /store/ in the url that should not be there.

The bulk of the rest of the site is working but since some of the site is adding extra urls it is causing problems.

Any help would be greatly appreciated and if any further information is needed please let us know. Thank you.
9 years ago
I am seeing this same issue.  Any solutions to this?
9 years ago
[email protected] wrote:
I am seeing this same issue.  Any solutions to this?


Gregg,

What does your current URL look like?

i.e.
www.maindomain.com/store
or
somethingelse.maindomain.com/store?
9 years ago
So I was able to get it to work by changing code.  There were a couple of issues:

1.  Our site runs as HTTPS always, following the emerging standard and SEO promotion.  
There is code that redirects to HTTP which was causing a redirect loop, since our root application redirects to HTTPS.  This code was in NopHttpsRequirementAttribute OnAuthorization that I removed.  

2.  I had to set our Store URL and Secure URL to not include the sub-directory in settings.

3.  I had to turn off bundling for CSS assets, as they end up with incorrectly re-written paths that do not include the sub-directory.
7 years ago
I found a much simpler workaround in the Admin panel that worked for me since I am forcing SSL at all times.

Set your Store URL to your secure site with subfolder.  E.g. https://domain.com/subFolder/

Do not set SSL Enabled or Secure URL. Your Store URL can be your "Secure Url".
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.