Support

Admin Tools

#10986 Redirect this (old) domain name to the new one

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 nicholas on Tuesday, 07 February 2012 06:53 CST

user55627
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? YES
Have I searched the tickets before posting? YES
Have I read the documentation before posting (which pages?)? YES
Joomla! version: 1.5.25
PHP version: 5.2.17
MySQL version: 5.0.90
Host: (optional, but it helps us help you)
Admin Tools version: 2.2.a3

Description of my issue:
When I one or multiple domains (separated by commas) to "Redirect this (old) domain name to the new one", they are ignored. I see the corresponding entries in the .htaccess file, but the URL line does not redirect to the original domain.

Any clues?

nicholas
Akeeba Staff
Manager
I'm also using 2.2.a3 on both my test and live sites. This feature does work and I tested again today. Have you clicked on "Save and Create .htaccess" to generate the new .htaccess file? If all worked, your .htaccess should have blocks like this one:
RewriteCond %{HTTP_HOST} ^www\.example\.org [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
where the OLD domain name is mentioned in the first line and the NEW is mentioned in the second line. If you see that, this .htaccess Maker feature worked as expected.

Please note how this feature works. If your site is www.example.com and you put "www.example.net,www.example.org" in that setting, then www.example.net and www.example.org will be redirected to www.example.com. However, example.net (without the www) and example.org (without the www) will not be redirected as they are different domain names. Yes, the subdomains do matter. In fact, each subdomain can be hosted on a different server. For instance cdn.akeebabackup.com points to an Amazon CloudFront distribution (various servers behind a multicast DNS), whereas www.akeebabackup.com points to our web server. Different subdomain = a completely different site. That's why there is no subdomain wildcard in the generated .htaccess.

Finally, it goes without saying that for this feature to work, all domain names must point to the exact same hosting account. This means that, in our example, all three of www.example.com, www.example.net, www.example.org should point to the same hosting account and the same Joomla! installation (the one where you are using Admin Tools) for this redirection to have any effect. Obviously, if the domains are on different servers / hosting accounts / web roots then there is no way this redirection can work.

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user55627
Well... all I can say is EXCELLENT RESPONSE.

Indeed, the issue was the missing "www". Since I have selected to "redirect non-www to www", the domains must be put in with the leading "www".

I've done this manually in the past without the www. I believe there must have been a wildcard that redirected the domain regardless of the subdomain.

Thanks!

nicholas
Akeeba Staff
Manager
You're welcome! As in all things IT, it's the small details that make the huge difference :)

Nicholas K. Dionysopoulos

Lead Developer and Director

πŸ‡¬πŸ‡·Greek: native πŸ‡¬πŸ‡§English: excellent πŸ‡«πŸ‡·French: basic β€’ πŸ• My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

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!