Cannot login after changing .htaccess in order to include "www"in urls (Solved)
Posted: Thu Jan 15, 2009 10:21 pm
Hi Guys,
I am running cmsms 1,5,1 on apacheserver under php4.3 and mysql and this cms system is the best ever, did not used dreamweaver anymore:) So it workes just fine until the following step were made:
I discovered that google didnt like duplicate content so I wanted all the urls have "www"included. I switched a old .html site to cmsms and therefore I have made a 301 redirectlist in my .htaccess file so all the pages are redirected in the right way. Also I put the following command in .htaccess right under the rule "RewriteEngine on" in order to fix the "www"issue :
RewriteCond %{HTTP_HOST} ^mydomain.nl [NC]
RewriteRule ^(.*)$ http://www.mydomain.nl/$1 [L,R=301] (of course I have changed "my domain in the right name of the domain"
)
(i tried to put this command on different places in .htaccess but then the "www" problem isnt solved, the only way to let that work is this exact location in htaccess.
Also I use the internal pretty urls of cmsms
Could this be the couse that I cannot login to the admin login page anymore? The login page appear just as usually, but after entering a username and password and then hit the button nothing happens, the screen seems to refresh a seccond but a empty admin loginpage appears, and again and again and again......so my site is just fine at the moment but manage any content is not possible.
Anyone familliar with this fenomena?
Maby I have to change something in the admindata in cmsms for this page? If the data (username and password) is sent from this page wich includes now the "www" I dont know....
(excuse me 4 the bad english)
Hope someone knows what I have to do to fix this issue... I would be very grateful...
Thanks for eading anyway!
Regard from Holland
I am running cmsms 1,5,1 on apacheserver under php4.3 and mysql and this cms system is the best ever, did not used dreamweaver anymore:) So it workes just fine until the following step were made:
I discovered that google didnt like duplicate content so I wanted all the urls have "www"included. I switched a old .html site to cmsms and therefore I have made a 301 redirectlist in my .htaccess file so all the pages are redirected in the right way. Also I put the following command in .htaccess right under the rule "RewriteEngine on" in order to fix the "www"issue :
RewriteCond %{HTTP_HOST} ^mydomain.nl [NC]
RewriteRule ^(.*)$ http://www.mydomain.nl/$1 [L,R=301] (of course I have changed "my domain in the right name of the domain"

(i tried to put this command on different places in .htaccess but then the "www" problem isnt solved, the only way to let that work is this exact location in htaccess.
Also I use the internal pretty urls of cmsms
Could this be the couse that I cannot login to the admin login page anymore? The login page appear just as usually, but after entering a username and password and then hit the button nothing happens, the screen seems to refresh a seccond but a empty admin loginpage appears, and again and again and again......so my site is just fine at the moment but manage any content is not possible.
Anyone familliar with this fenomena?
Maby I have to change something in the admindata in cmsms for this page? If the data (username and password) is sent from this page wich includes now the "www" I dont know....

(excuse me 4 the bad english)
Hope someone knows what I have to do to fix this issue... I would be very grateful...
Thanks for eading anyway!
Regard from Holland