SteveOH

Tag: sql

Joomla User login errors using Internet Explorer 7.0 (IE7)

by on Aug.16, 2007, under Technology

So registered users on one of my 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 “Unauthorized to see this content”.  So this is what I did to it on my site.  I have a shared hosting account on a FreeBSD Unix 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 /Unix systems running with the modwrite option on, and wouldn’t work on a  server (I think, don’t quote me though).

Good luck.

Leave a Comment :, , , , , , , , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!