Page 1 of 1

PhocaGallery with non-www on www (WEDOS hosting)

Posted: 07 Mar 2017, 19:56
by hrackar
Hey, if I use in htaccess this code:

#RewriteCond% {} ^ HTTP_HOST example \ .com $
#RewriteRule (. *) Http://www.example.com/$1 [R = 301, QSA, L]

there is a problem with creating folders and uploading files via PhocaGallery. The result is a white page with "Invalid token".

Hosting is adjusted according to the requirements WEDOS with domains and subdomains.

Thanks for advice.

Re: PhocaGallery with non-www on www (WEDOS hosting)

Posted: 09 Mar 2017, 19:14
by Jan
Hi, unfortunately I don't have any experiences with such .htaccess rules. The paths are defined by Joomla! itself. Phoca Gallery uses the paths from Joomla! - for example, images are stored in Joomla! root /images/phocagallery folder which is a folder inside Joomla! images folder. So the paths to this folder - relative or absolute are defined by Joomla! methods (e.g. JURI::base(), etc.) so Phoca Gallery does not set them, it just uses the standard Joomla! paths which are defined in configuration.

Did you look at the errorReporting on your server, maybe there will be some php error when creating folders or uploading files.

Mostly invalid token means, the form (to create folder or upload image) was expired or changed when uploading so check if there is no specific redirect set by the rule which can then lose the tokens :idea:

Jan