ShopSite Knowledgebase



Where does ShopSite get the hostname or URL used in the URLs on ShopSite-generated pages?

Product: ALL
Version: ALL
OS: ALL

Where does ShopSite get the hostname used in the URLs for the store links and the images?

For example, in the Back Office, clicking on Images, then clicking on Edit Image Attributes shows the URL to be:
http://yourdomain.com/media/add_to_cart.gif

What if I need to change yourdomain.com to yournewdomain.com, or from yourdomain.com to yourdomain.com/store?
Solution ID: S04122

ShopSite uses the URL in the store authorization file (license key, usually called [your_storeid].auth) for the URLs of page links in the storefront, and image URLs selected for pages or products via pull-downs.

For example, if the last line of your auth file reads (up to the first colon):

http://yourdomain.com/store

then the hostname used in generated URLs will be http://yourdomain.com/store, and images selected via pull-downs in the ShopSite backoffice will be generated on the store pages at http://yourdomain.com/store/media. This cannot be changed by editing any configuration file or editing the authorization file, only by getting a new authorization file.

To change from yourdomain.com to yournewdomain.com, you must get a new auth file, then replace the old auth file with this new auth file in the ShopSite Data Directory (You can find the location of this directory listed at the bottom of Preferences -> Hosting Service). If your new auth file also changes the directory path after the domain name in the URL, then you will also need to edit the [your_storeid].aa file in the ShopSite CGI Directory (where start.cgi is located) and change the 'outputdir' token to the new filesystem path to match the new URL. You will also need to move the contents of the old output directory (all .html pages, the media subdirectory, and the smarthtml subdirectory if it exists) into the new location.

After replacing the auth file, the customer must a) "Reset Image Attributes" (in Images) for all images, then b) Regenerate the entire store from Utilities -> Publish.

This is the same procedure to use if you have an auth file with an IP address, and wants to change to a new hostname, or if you want to have your pages in a different directory path off of the domain.


Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

Article Details

Last Updated
13th of November, 2008

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions



How would you rate this answer?




Thank you for rating this answer.

Continue