PhotoStore Documentation


Galleries will not show up in the drop down list, and roll over images do not work on homepage?

If you are getting these symptoms then it means you have a www vs non-www conflict. Example you may of entered the install URL in the store manager aswww.---mydomain---.com and are visiting your store front using just ---mydomain---.com. The store uses AJAX to build the drop down gallery list and also to show roll over images. However AJAX is not capable of doing cross site loading for security reasons. Even though www and the non-www of your domain will technically show the same site, they are actually different sites according to the URL, so AJAX will not load them because of the cross site security.

To correct this you will need to force your site to use one or the other. In this example we will force everyone to the www version of your site. There can be numerous ways to do this, but the easiest way is to just add code to your a .htaccess file on your hosting.

Here is the code:
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

This code will work if your store is located in the root of your domain name (example ---mydomain---.com). If your store is located in a directory like for example ---mydomain---.com/store/ then you will need to add that path to the code above so it looks like this:
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/store/$1 [R=301,L]

Notice the /store/ (in bold) now in the path above. Save your .htaccess file and this file should be in the root of your store files.

After adding that code, and saving the file now everyone that visits the non-www version of your store will not be redirected to the www version. You should also log into your manager and go to settings -> software setup, and make sure the install URL has www in it.
 
For www:

#Force all users to www version of the domain name (for better SEO)RewriteCond %{HTTP_HOST} !^www\. #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

For non-www:

#Force all users to non-www version of the domain name (for better SEO)RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] #RewriteRule ^(.*)$ http://%1/$1[R=301,L]


If you want to force all to www you would use the top one. If you want to force them all to non-www then use the bottom one. If your store is in a sub directory you will need to add that directory to the codes above. Also after adding this, be sure to log into your manager and make sure that the install URL located in settings -> software setup is set properly to match.


If you have any issues, just contact us in support and we can do this for you.