The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Aug 01, 2006 5:45 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Mar 08, 2006 2:01 am
Posts: 5
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


Top
 Profile  
 
PostPosted: Tue Aug 01, 2006 6:25 pm 
User avatar
Joomla! Master
Joomla! Master
Offline

Joined: Sun Oct 02, 2005 12:50 am
Posts: 17558
Location: Omaha, NE
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
http://www.kiwaniswest.org
blog: http://www.joomlaleaks.com


Top
 Profile  
 
PostPosted: Tue Aug 01, 2006 7:03 pm 
User avatar
Joomla! Enthusiast
Joomla! Enthusiast
Offline

Joined: Mon May 29, 2006 5:45 pm
Posts: 224
Location: UK
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:
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:
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.

_________________
Martin Porcheron - mpwebwizard.com


Last edited by mporcheron on Tue Aug 22, 2006 9:26 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Aug 01, 2006 7:49 pm 
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Wed Mar 08, 2006 2:01 am
Posts: 5
Spot On

That did the trick

Thanks

Darren Sheffield


Top
 Profile  
 
PostPosted: Mon Aug 21, 2006 2:13 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Sun Nov 13, 2005 5:16 am
Posts: 43
Location: Orlando, FL
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 



Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group