Tag: sql
Joomla User login errors using Internet Explorer 7.0 (IE7)
by Steve O Hernandez on Aug.16, 2007, under Technology
So registered users on one of my Joomla controlled sites simply could not log in if they were using Internet Explorer (6 or 7). Firefox and Opera work like a charm (of course :-p), but logging in using IE would just result in them being thrown back to the main page, with the error “Unauthorized to see this content”. So this is what I did to fix it on my site. I have a shared hosting account on a FreeBSD Unix Server hosting it’s own mySQL database.
I changed the configuration.php as follows:
$mosConfig_live_site = ‘http://www.mydomain.com/joomla’;
to:
$mosConfig_live_site = ‘http://mydomain.com/joomla’;
And then I changed the htaccess file (htaccess.txt in the root of the joomla installation) by adding the following lines:
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} http://www.mydomain.com/$1 [nc]
rewriterule ^(.*)$ http://mydomain.com [r=301,nc]
Now this alteration may not be 100% correct, but it’s what I got after searching the net for awhile.
Now all requests coming to the server with www in front are changed to the domain name without
it and internet explorer is working lovely. I’m not sure if it’ll work the other way around, but I wouldn’t think so. Additionally, this of course only works on Linux/Unix systems running Apache with the modwrite option on, and wouldn’t work on a Windows server (I think, don’t quote me though).
Good luck.