Strange duplication in the Store URL

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
7 years ago
The website I work on have a strange bug!

In the IIS we config the site on a subfolder /boutiquepro

In the [Configuration] - [Store] when we enter the "Store URL:" at http://www.ghlinc.com/boutiquepro
all the images and link point to http://www.ghlinc.com/boutiquepro/boutiquepro

in the System - Warning page i have this Warning:

Specified store URL (http://www.ghlinc.com/boutiquepro) doesn't match this store URL (http://www.ghlinc.com/boutiquepro/boutiquepro)

If I change the store URL to "http://www.ghlinc.com/" In the [Configuration] - [Store], the site work normaly but the password recovery email or the wish list email links are wrongly write missing the "/boutiquepro" path...  

The site have no redirrection configured ij IIS
The site have no httpd.htaccess in the nop folder.

Someone have an idea?

thanks in advance
7 years ago
I think this is happening because you set your site as a virtual directory.
Try this:
Create a new website in IIS with it's directory path pointed to the folder where the nop files reside:
right-click "Sites" >> Add Website >> give it same IP as your other site, then pause your original site, and return to your site in a browser and see if it behaves correctly as a real website and not a virtual website.
7 years ago
Thanks for the fast answer :-)

we already think of this, but the problem is the Root already have another web site.
7 years ago
I don't understand. The physical location of your website files has no bearing on it's URL.
In other words, you could have your nop site in any folder on your server...it doesn't have to physically be "within" another site, and it doesn't matter if you already have a default site in your wwwroot.

Will you have a fully qualified domain name for this nop site?

You just need to MOVE your nop site into a directory of it's own in the wwwroot, then in IIS, create a new website and choose the new folder where you moved it to. You then just have to edit the site bindings and put your host header for the site ...you could even do it using a subdomain, like:
http://boutiquepro.ghlinc.com

That might solve your problem..??
7 years ago
We have a similar issue to:

If we set the store url as:  http://www.oursite.com/store

And nop is setup in a virtual directory /store then image urls end up with /store/store/

We cannot host nop at the root of the site ie www.oursite.com/ as there is another website hosted there anyway (not nop)

If we set the store url to not include /store then other things break.

We've also notice other plugins picking up /store/store in the url.

any thoughts welcome.

should say its Nop 3.7
7 years ago
I installed another Nop from scratch, in a demo site, the setup is identical and it work fine!

embryo : thanks for the answer... for the http://boutiquepro.ghlinc.com :-)
we already do this but the customer already paid for is SSL certificate and it's set to ghlinc.com
so we are in the process of reacquiring the SSL allowing *.ghlinc

rakatatech: It's reassuring that i'm not alone with this strange bug :-).  If you find something please post your solution here on the forum.

for my part, if I find a solution, I will put it here too

It's also Nop 3.7
7 years ago
Great! Glad you got it working!
7 years ago
Found out problem which I've put in as a bug report (as I think there is a bug in certain scenarios).

https://www.nopcommerce.com/boards/t/46330/duplicate-folders-in-path-eg-storestore-with-virtual-folders.aspx

In summary there are 2 scenarios:

Basically using SSL enabled and setting the sslurl with a path will cause a problem if you are using virtual folders - it will add the virtual folder to the path on the ssl url.

Also if IIS does not get a http host header, it would pick up the path from the non-ssl url - then add the virtual folder.

I might be the case that really the store urls should not include a path at all - in which case I think this will cause problems with plugins that look to the store urls directly rather than using WebHelper.GetStoreHost.

that at least explains the problems we saw, Scott
3 years ago
I installed nopCommerce to /Orders  subfolder to my primary site.
I can access it and SSL covers the nop site fine but getting the error.
Specified store URL (http://chasonstaff-056-site2.gtempurl.com/) doesn't match this store URL (http://mysite.com/orders/)

Where do I go to resolve this?
another post said to go to:
Configuration/Settings/General Settings/Miscellaneous  but I don't see Miscellaneous.
3 years ago
Go to your admin > Configuration > Stores
Make sure the address matches; including any http or https prefix
(If using Chrome, go to your home page and double-click the URL in address bar)
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.