Support

Admin Tools

#33877 Moving website between hosts and domains

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Monday, 09 November 2020 01:17 CST

BasilC

I'm going to move my website between hosts and at the same time to a new domain. There's a slight complication in that currently the website is in a subdirectory, /pgc, but on the new domain I want it to be in the root directory.

I've practised copying the website to the new domain using Akeeba Backup and making all the necessary changes to get all extensions working properly and eliminated the absolute urls on the current site. I know that when I do the move for real I'll need to use 301 redirects, but am a bit unclear about whether to make them in Admin Tools or edit .htaccess files directly and what form they should take.

Currently, there is an .htaccess file on the domain root that redirects to the /pgc folder, and there are also some redirects from shortened versions of a few important pages:

RewriteEngine On
Redirect 301 /newsletter /pgc/newsletters/weekly-newsletter
Redirect 301 /event /pgc/event
Redirect 301 /events /pgc/whats-on/events
Redirect 301 /subscribe /pgc/subscribe

RewriteCond %{HTTP_HOST} ^(www.)?olddomain.org.uk$
RewriteRule ^(/)?$ pgc [L]

When I make the move do I just edit this .htaccess file and if so what is the syntax? The new domain is newdomain.uk.

Do I also need to change the .htaccess file that has been generated by Admin Tools, which is /pgc/.htaccess ? Or will it be bypassed entirely?

I'm sure this is very basic stuff, but try as I can I can't get my head around regular expression!

dlb

Regular expressions are not my friend.

The .htaccess file generated by Admin Tools will be restored to the root directory in the new site.  Depending on how the old site is set up, the .htaccess in your current root may not even exist on the new site - it may not be included in the backup.

Any customizations of your .htaccess file should be added to the Custom fields in .htaccess Maker so that any future regeneration does not wipe them out.  The lines where you're forwarding from root to pgc will no longer be required.  The ones where you're changing paths will still be needed.

In .htaccess Maker there are a couple of URLs at the bottom of the screen that may need to be updated.  They may already be right.  Your site thinks it's in the root, the .htaccess in the root folder takes care of the forwarding to pgc.



Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!