URL issue within product category - lost styling and cart


https://forum.kartris.com/Topic2697.aspx
Print Topic | Close Window

By pfkoss - Fri 27 Dec 2013
Hi,

We are having an issue once we move the site from developer machine to server.

the configuration is as follows. (the names have been changed to protect the innocent)

in IIS we have a site called aaa_bbb

the public url www.aaabbb.com points directly to the IIS site aaa_bbb.

after much trial and error - changed the webshopfolder and webshopurl to '' and now most everything seems to work with one exception.

Once we navigate to a product category we lose all styling and the cart link

The URL changes to www.aaabbb.com/SomeProductCategory/SomeProductCategory_xyz.aspx and the path back up to the /Skins directory no longer works because it is expecting to be at the /root/Skins and instead it is at /root/SomeProductCategory/ which of course does not have a SKINS folder.

The issue compounds when we navigate into a product page which then adds another subdirectory onto the URL www.aaabbb.com/SomeProductCategory/SUBCategory/somproduct_p-12.aspx

We hacked it by creating the physical directories for the categories and sub categories and then copying the SKINS directory but that ain't cool.

On top of that the shopping cart link only works from the home page, as soon as you navigate into a category, it also adds the subfolders and quits working.

Any help would be appreciated.
By Paul - Sat 28 Dec 2013
If your site is running in the root of a web, e.g. a domain like www.mysite.xyz, then the webshopfolder config setting should be blank, but the webshopURL should be:

http://www.mysite.xyz/

i.e. it cannot be blank, it must start with http:// (not https - SSL is handled separately if enabled) and it must have a slash at the end.