Jump to content

Unable to login BO when i add www to my domain


Recommended Posts

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

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

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


 

 

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 by chat.aadi (see edit history)
Link to comment
Share on other sites

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

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

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

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.

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...