SVKpneux Posted August 23, 2016 Share Posted August 23, 2016 Hi In past, I changed my domain from non www to www. But, when I login to my BO, there is: You are currently connected under the following domain name testdomain.com In SEO and URL, there si correct form with www. I try delete browser cachce and cookies and then login with correct address, but still redirect to non www admin login address. Can U help me please? Sorry for my English. P.S.: I want to solve my problem, because my cron task manager not running and it may be caused by this problem (www/non www) Thanks Link to comment Share on other sites More sharing options...
endriu107 Posted August 23, 2016 Share Posted August 23, 2016 Did you regenerate htaccess file? Link to comment Share on other sites More sharing options...
SVKpneux Posted August 23, 2016 Author Share Posted August 23, 2016 Did you regenerate htaccess file? Yes, I did. Many times. I have PS 1.6.0.9. When I try to login with new address WITH WWW, redirect to NON WWW. https://mytestdomainxxx/eshop/admin/index.php?controller=AdminLogin&token=324aa055a8e9fb7734951056c1aca6eb Link to comment Share on other sites More sharing options...
Knowband Plugins Posted August 23, 2016 Share Posted August 23, 2016 In order to redirect to www from non-www links of your domain, you should add the following rule in .htaccess present in your root directory. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mynewwebsite\.com$ [NC] RewriteRule ^(.*)$ http://www.mynewwebsite.com/$1 [L,R=301] P.S. Don't forget to replace 'mynewwebsite.com' with your domain name. Link to comment Share on other sites More sharing options...
SVKpneux Posted August 23, 2016 Author Share Posted August 23, 2016 In order to redirect to www from non-www links of your domain, you should add the following rule in .htaccess present in your root directory. RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.mynewwebsite\.com$ [NC] RewriteRule ^(.*)$ http://www.mynewwebsite.com/$1 [L,R=301] P.S. Don't forget to replace 'mynewwebsite.com' with your domain name. I try it, no success. My web sites show address with WWW. But when I want to login to BO, address is NON WWW. also, if I write admin login address with WWW Link to comment Share on other sites More sharing options...
vekia Posted August 23, 2016 Share Posted August 23, 2016 In past, I changed my domain from non www to www. where you changed it and how? hosting panel settings? Link to comment Share on other sites More sharing options...
SVKpneux Posted August 24, 2016 Author Share Posted August 24, 2016 where you changed it and how? hosting panel settings? I changed address in SEO and URL, in database, cleared cache, regenerate .htaccess. My online shop runs with www. But when I installed PS, i used non www. After I changed this to www, when I write login address with www, it is still redirect to non www. I cleared also browser cache and cookies. I don´t know, what is wrong. Sorry for my English. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now