chat.aadi Posted June 30, 2014 Share Posted June 30, 2014 hi, i am unable to login back office with www to my domain name. my website is www.sastavasta.com. i have change SET SHOP URL. because my site is not opening with www.sastavasta.com. i add www to my domain name to preference>>seo & url . my shop domain name www.sastavasta.com. and ssl domain www.sastavasta.com. i want to change because there are some problem. i think this is www problem back office. Link to comment Share on other sites More sharing options...
NemoPS Posted June 30, 2014 Share Posted June 30, 2014 So you can access to the back office, without www in the name? What happens with the www version? does it keep redirecting? If so it might be a cookie problem, as www. is considered subdomain Link to comment Share on other sites More sharing options...
chat.aadi Posted June 30, 2014 Author Share Posted June 30, 2014 actually when i enter www.sastavasta.com/adminXXXX/login.php & enter my email id and password. so i am not able to login. please help me i want to acess my BO with www. Link to comment Share on other sites More sharing options...
NemoPS Posted June 30, 2014 Share Posted June 30, 2014 okay, but what happens? does it say it's wrong? As I said it might be related to cookies. Link to comment Share on other sites More sharing options...
chat.aadi Posted June 30, 2014 Author Share Posted June 30, 2014 nothing happens... when i enter email & password. nothing happens Link to comment Share on other sites More sharing options...
NemoPS Posted June 30, 2014 Share Posted June 30, 2014 It has to be a cookie issue. Try erasing cookies and see if it helps. Does it work fine if you access using the top level domain only, without www? Link to comment Share on other sites More sharing options...
chat.aadi Posted June 30, 2014 Author Share Posted June 30, 2014 i have already clear cookie. and also try in internet explorer. Link to comment Share on other sites More sharing options...
El Patron Posted June 30, 2014 Share Posted June 30, 2014 add this to your .htaccess file, changes non-www to www RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] learn how to update .htaccess here http://www.prestashop.com/forums/topic/2131[spam-filter]tip-15-16-and-custom-htaccess/ note normally havning or not having www for bo should not cause this issue so there may be something else Link to comment Share on other sites More sharing options...
chat.aadi Posted June 30, 2014 Author Share Posted June 30, 2014 (edited) I add this , after that my email & password is not working. i am unable to login, because when i enter sastavasta.com/admin1234, it automatically redirect to www.sastavasta.com/admin1234 now i am unable to login. you can check this. # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums thanks for your reply. please help <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine On RewriteCond %{HTTP_HOST} !^www. RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] RewriteEngine on RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] 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] 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] 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] 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] 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] 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] RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox 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 RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/x-font-woff .woff #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Edited June 30, 2014 by chat.aadi (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted June 30, 2014 Share Posted June 30, 2014 crap, not sure why I told you to do the redirect given if www you can't login. I have never seen this behavior typically you just get message in back office that url does not match seo & urls what do you have in seo&urls in shop domain and shop ssl domain? Link to comment Share on other sites More sharing options...
chat.aadi Posted June 30, 2014 Author Share Posted June 30, 2014 yup, i have added www.sastavasta.com & ssl domain. but anyway i will manege or reinstall it again. thanks for your great support. you have good knowladge. and happy with your reply thanks again.. , if any solutions found please share it. Adish Jain Link to comment Share on other sites More sharing options...
El Patron Posted June 30, 2014 Share Posted June 30, 2014 yup, i have added www.sastavasta.com & ssl domain. but anyway i will manege or reinstall it again. thanks for your great support. you have good knowladge. and happy with your reply thanks again.. , if any solutions found please share it. Adish Jain turn friendly url's off and back on, to regenrate .htaccess clear cookies and browse cache and try again... strange problem. Link to comment Share on other sites More sharing options...
chat.aadi Posted June 30, 2014 Author Share Posted June 30, 2014 sorry, can't login. with www Link to comment Share on other sites More sharing options...
El Patron Posted June 30, 2014 Share Posted June 30, 2014 this is one of those...real pain in the arse issues that takes loads of time. we could guess at this all day, but I'm really out of ideas. wait, one more idea, turn ps error reporting on and re-test...see if any error is presented. Link to comment Share on other sites More sharing options...
NemoPS Posted July 1, 2014 Share Posted July 1, 2014 What if you reach the page, erase htaccess, refresh the page and try? Link to comment Share on other sites More sharing options...
chat.aadi Posted July 3, 2014 Author Share Posted July 3, 2014 i had erase the .htaccess, but still same Link to comment Share on other sites More sharing options...
El Patron Posted July 3, 2014 Share Posted July 3, 2014 this is very odd, previous versions of ps for back office would allow www/non-www and then have info message saying you were not connected with same url as defined in seo&urls. I do not have a gTLD running of your version (i.e. all subdomain demos) to reproduce so I can not offer much help. you could if that important to you open a forge report, if you do please post url of forge report back here. 1 Link to comment Share on other sites More sharing options...
Recommended Posts