store | blogs | forums | twitter | facebook | wiki | downloads | support portal
Atomic Secure Linux
It is currently Sun Sep 21, 2014 12:07 pm

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Moving Joomla Admin Directory
Unread postPosted: Wed Nov 30, 2011 5:13 am 
Offline
Forum User
Forum User

Joined: Tue Jul 19, 2011 6:30 am
Posts: 69
Location: United Kingdom
I have managed to move a joomla installation from a localmachine to a server on a development hosting account. Absolutely fine.

However, when I then move the site again to a root domain name - It will not let me into the backend, however I kept the database the same (just changed the owner in the plesk database). The admin panel appears, but doesn't let me login.

As the database is the same - It means I could still use the the admin panel on the development hosting account to update the database. This is strange - I have set all the paths in the configuration file.

Any Ideas?

Thanks.


Top
 Profile  
 
 Post subject: Re: Moving Joomla Admin Directory
Unread postPosted: Fri Dec 02, 2011 7:05 am 
Offline
Forum User
Forum User

Joined: Tue Jul 19, 2011 6:30 am
Posts: 69
Location: United Kingdom
The problem was with the .htaccess

joomla.site/administrator/index.php (the index.php is required in the url)

I was rewriting the index.php in the main .htaccess file, so have made an exception in the .htaccess:

RewriteRule ^/administrator - [L]

Work perfectly :)


Top
 Profile  
 
 Post subject: Re: Moving Joomla Admin Directory
Unread postPosted: Fri Dec 02, 2011 9:40 am 
Offline
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
User avatar

Joined: Thu Feb 07, 2008 7:49 pm
Posts: 3631
Location: Chantilly, VA
Thanks for posting a fix too, at some point in the future someone else is going to run into this and I know they will be thankfully for a full answer too. :-)

_________________
Michael Shinn
Atomicorp - Security For Everyone

Co-Author of Troubleshooting Linux Firewalls.


Top
 Profile  
 
 Post subject: Re: Moving Joomla Admin Directory
Unread postPosted: Fri Dec 02, 2011 9:58 am 
Offline
Forum User
Forum User

Joined: Tue Jul 19, 2011 6:30 am
Posts: 69
Location: United Kingdom
RewriteCond %{HTTP_HOST} ^domain\.co.uk [NC]
RewriteRule ^(.*)$ http://www.domain.co.uk/$1 [L,R=301]
RewriteRule ^(administrator)($|/) - [L]
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule ^(.*)index.php$ http://www.domain.co.uk/$1 [R=301,L]

:) Thats the full thing - redirects non www to www. , removes index.php. :)


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

» Feed - Atomicorp

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group