cutecat Posted August 28, 2013 Share Posted August 28, 2013 had any experience this? this it my .htaccess <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^.*$ - [NC,L] RewriteCond %{HTTP_HOST} ^www.mysite.com$ RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> Link to comment Share on other sites More sharing options...
cutecat Posted August 28, 2013 Author Share Posted August 28, 2013 i would need to change to www due to CDN for cloudflare they only allow www domain Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 28, 2013 Share Posted August 28, 2013 Hi cutecat, thanks for the post! This will help other users who are on CloudFare that encounter the same problem. Thank you! Link to comment Share on other sites More sharing options...
cutecat Posted August 28, 2013 Author Share Posted August 28, 2013 hi ben this is not solved, I would like to change it to www, but once i have changed it, I am unable to log in or out in the front office. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 29, 2013 Share Posted August 29, 2013 Oh hey, I'm sorry! Okay so, have you turned error reporting on? What happens when you try to log in? Do you have a link to your store? Link to comment Share on other sites More sharing options...
cutecat Posted August 29, 2013 Author Share Posted August 29, 2013 i had convert back to normal already. may i know how do i turn on the error report? here is my link Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 29, 2013 Share Posted August 29, 2013 No worries, follow this guide according to your PrestaShop version. http://www.prestashop.com/forums/topic/224525-how-to-get-debug-information-for-500-error-or-blank-page/ It seems that it automatically redirects to the non www link. Even if you use the www. in the URL. Link to comment Share on other sites More sharing options...
benjamin utterback Posted August 29, 2013 Share Posted August 29, 2013 Also, I am unable to register to your store because (at least for United States) it requires me to enter a state. However, on your registration page, there is no field to select state. Have you encountered this problem before? Link to comment Share on other sites More sharing options...
cutecat Posted August 29, 2013 Author Share Posted August 29, 2013 Also, I am unable to register to your store because (at least for United States) it requires me to enter a state. However, on your registration page, there is no field to select state. Have you encountered this problem before? had turned on the error report, but there isn't any error report. I had tried to log in the to site, but i am also unable to log in now. I will change it back to normal again Link to comment Share on other sites More sharing options...
cutecat Posted August 29, 2013 Author Share Posted August 29, 2013 Also, I am unable to register to your store because (at least for United States) it requires me to enter a state. However, on your registration page, there is no field to select state. Have you encountered this problem before? i thought in the states, it is required to input in the state? Link to comment Share on other sites More sharing options...
cutecat Posted August 29, 2013 Author Share Posted August 29, 2013 the error reporting is still on but I do not see any error... hmmm define('_PS_MODE_DEV_', true); Link to comment Share on other sites More sharing options...
cutecat Posted August 29, 2013 Author Share Posted August 29, 2013 only when i enter the product then i will get this error Warning: Function getMetaTags() is deprecated in /home/mysite/public_html/modules/pinterest/pinterest.php on line 184 in /home/mysite/public_html/classes/Tools.php on line 1845 Link to comment Share on other sites More sharing options...
Recommended Posts