It is currently Thu Aug 28, 2008 8:30 pm

Problems using the login inconjunction with www.

General questions relating to Joomla! There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.

Problems using the login inconjunction with www.

Postby dsheffield on Tue Aug 01, 2006 5:45 pm

If I try to login to my site with the full URL http://www.domain.co.uk it fails.

The error message I get is

http://domain.co.uk

You are not authorized to view this resource.

If I start with http://domain.co.uk and login it works OK

The system is

PHP 4.4.2 built on Linux
Apache 1.3.36
Joomla! 1.0.10 Stable

Once you have clicked OK and you try to login it does nothing.

Any help on this would be much appreciated as I have been pulling my hair out and I'm getting rather bald.


Darren
dsheffield
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 5
Joined: Wed Mar 08, 2006 2:01 am

Re: Problems using the login inconjunction with www.

Postby dhuelsmann on Tue Aug 01, 2006 6:25 pm

dsheffield wrote:If I try to login to my site with the full URL http://www.domain.co.uk it fails.

The error message I get is

http://domain.co.uk

You are not authorized to view this resource.

If I start with http://domain.co.uk and login it works OK

The system is

PHP 4.4.2 built on Linux
Apache 1.3.36
Joomla! 1.0.10 Stable

Once you have clicked OK and you try to login it does nothing.

Any help on this would be much appreciated as I have been pulling my hair out and I'm getting rather bald.


Darren



Try changing your $Moscofig_livesite parameter in configuration.php to http://www.domain.co.uk

Regards

Dave
Regards, Dave Global Moderator
Your question has likely already been answered - Search the forums first - and only then post your question!
http://www.kiwaniswest.org
http://www.faysgifts.com
User avatar
dhuelsmann
Joomla! Master
Joomla! Master
 
Posts: 10192
Joined: Sun Oct 02, 2005 12:50 am
Location: Omaha, NE

Re: Problems using the login inconjunction with www.

Postby mporcheron on Tue Aug 01, 2006 7:03 pm

or you can redirect all www. requests to non-www. requests.  this is also better because it means that only the non-www. will be indexed by search engines, not both non-www. and www. sites.

To redirect from a www. prefixed page on your website to a non-www. prefixed page simply add this to or create a .htaccess file in the root of your Joomla! installation if you on a server with Apache installed.

Not using Joomla! SEO/SEF:
Create/add this code to a .htaccess file in the joomla! root folder.
Code: Select all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*) http://example.com/$1 [L,R=301]


Using Joomla! SEO/SEF:
Add the following code to the end of your .htaccess file.
Code: Select all
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*) http://example.com/$1 [L,R=301]


PLEASE NOTE: For this to fully work your $mos_live_site must have the non-www. address.  To change it, (download the configuration.php to your computer if you've updated it online) and look for $mosConfig_live_site at the start of the line (line 44 by default).  Change the address between the quotes and upload this file.
Last edited by mporcheron on Tue Aug 22, 2006 9:26 am, edited 1 time in total.
Martin Porcheron - mpwebwizard.com
User avatar
mporcheron
Joomla! Enthusiast
Joomla! Enthusiast
 
Posts: 223
Joined: Mon May 29, 2006 5:45 pm
Location: UK

Re: Problems using the login inconjunction with www.

Postby dsheffield on Tue Aug 01, 2006 7:49 pm

Spot On

That did the trick

Thanks

Darren Sheffield
dsheffield
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 5
Joined: Wed Mar 08, 2006 2:01 am

Re: Problems using the login inconjunction with www.

Postby weatherangel on Mon Aug 21, 2006 2:13 am

mporcheron wrote:or you can redirect all www. requests to non-www. requests.  this is also better because it means that only the non-www. will be indexed by search engines, not both non-www. and www. sites.


That has been driving me insane!  I didn't even realize I was using www instead of non-www every time I tried to login lately and couldn't figure out why I couldn't login to my front end!  Blah!

Thanks for this thread!  Worked like a charm :)

Ilene
$DO || ! $DO ; try
try: command not found
User avatar
weatherangel
Joomla! Apprentice
Joomla! Apprentice
 
Posts: 43
Joined: Sun Nov 13, 2005 5:16 am
Location: Orlando, FL


Return to General Questions - 1.0.x

Who is online

Users browsing this forum: b_kkn and 11 guests