Page 1 of 1

URL canonicalization causing problems with login into admin

Posted: Fri Jun 13, 2014 6:30 pm
by ideep13
Hi,

I am having problems with login into administration panel.

I have found out the problem.

It is the .htacces file - and this is causing my problem:

Code: Select all

RewriteCond %{HTTP_HOST} !^www.xxxx.com$ [NC]
RewriteRule ^(.*)$ http://www.xxxx.com/$1 [L,R=301]
If I remove it, everything works fine.

I need to solve this, because of the whole seo and page rank situation so I kindly ask you for your help if there is any way to go around this..

Love,
deep13

p.s. I have OC 1.5.1.3 version

Re: URL canonicalization causing problems with login into ad

Posted: Fri Jun 13, 2014 8:03 pm
by cwswebdesign
The redirect that you posted looks to be redirecting www to www which is causing an unnecessary loop. I take it that you really wanted to direct non www to www?

DL

Re: URL canonicalization causing problems with login into ad

Posted: Fri Jun 13, 2014 8:08 pm
by ideep13
this redirect worked just fine from non www to www..

the problem is if I have this in my .htaccess file I can not login into my admin panel

so I need to find out how can I still have this in my .htacces file but been able to login

..if anybody has another code or solution to this I'd be grateful.

Re: URL canonicalization causing problems with login into ad

Posted: Fri Jun 13, 2014 9:23 pm
by ideep13
nevermind I found the problem..

I had to change the config.php file

Re: URL canonicalization causing problems with login into ad

Posted: Tue Jun 17, 2014 9:57 am
by sqwireless
RewriteCond %{HTTP_HOST} ^sqwireless.com$ [NC]
RewriteRule ^(.*)$ http://www.sqwireless.com/$1 [R=301,L]


This is what i use, i had the same problem, but i forgot what i did, and after that it worked.