Support

Admin Tools

#29985 Redirects to new site

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 Wednesday, 22 August 2018 17:17 CDT

zT-l0ve
I've copied the content of a site to a new domain (domain-new.com) and trying to use admin-tools to redirect SEF urls from the old site (domain-old.com) to domain-new.com. The site structure and content is identical.

The redirects are set up in Admin Tools on domain-old.com

The redirect results in the correct link in the browser.

For example, "https://domain-old.com/index.php/publications" results in the browser showing"https://domain-new.com/index.php/publications"

However the redirects fail with an error " The page isn’t redirecting properly. An error occurred during a connection to www.domain-new.com. This problem can sometimes be caused by disabling or refusing to accept cookies."

Interestingly, trying "https://domain-new.com/index.php/publications" in a different browser also fails with the same message.

Also and weirdly, removing the redirect from AdminTools in www.domain-old.com restores the ability for www.domain-new.com to be able to respond to "https://domain-new.com/index.php/publications"

This works for any redirect and any setting of url parameters.

I welcome your advice.

Many thanks,
Terence

nicholas
Akeeba Staff
Manager
You CAN NOT use Admin Tools' Redirect feature to redirect from an old domain to a new one. Admin Tools' Redirect feature does NOT take the host name into account. It redirects a path to a different path or URL. What you are looking for is best done with .htaccess directives. For example, Admin Tools' .htaccess Maker includes a feature to redirect old domains to new. You just need to use that with your old domain name and make sure that both the old and the new domains are served by the same hosting account (so that the .htaccess file applies to both domains).

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!

zT-l0ve
Dear Nicholas,

Thank you for your prompt reply.

I understand the problem better now - I'd thought I could redirect the paths for content items from the old domain to their new URLs on the new domain.

The actual situation is that I want to use the old domain for a completely different Joomla site. This means that I want to redirect (to the new domain), only the URLS for the 40 or so most commonly searched content items plus one whole directory of around 150 items.

I don't want to redirect the whole of the old domain as it is about to have completely new content put onto it.

Both domains are on the same AWS LAMP server. I'm a bit puzzled as to why they have to have the same .htaccess file? I thought each site would be independent?

I tried using traditional .htaccess 301 directives at the top of the .htaccess from Admin Tools but they had no effect.

I welcome your advice.

nicholas
Akeeba Staff
Manager
What you were trying to do was unclear from your post. When information is missing we have to make assumptions based on what people usually want.

In your case you have two sites, OLD and NEW. They are hosted separately; each site consists of different files. Please note that this must be the case RIGHT NOW for what I describe to work.

The NEW site must not have any redirections set up. Otherwise you are redirecting a URL back to itself which is exactly what causes the redirection loop.

The OLD site must have the following redirection set up:
New URL: publications
Existing URL: NEW/index.php/publications
Where NEW is the domain name of the new site.

Please note that the URL you are redirecting FROM in the old site is "publications", not "/publications", not "index.php/publications", not "OLD/index.php/publications". The path that is taken into account starts after "index.php/" in the URL.

If your OLD site will not be running Joomla then you will have to set up redirections using .htaccess. Setting up redirections that way is beyond the scope of our support. I can only tell you that .htaccess redirects are NOT subject to any restrictions imposed by Admin Tools.

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!

zT-l0ve
Thank you Nicholas,
That is really useful information that I can work with.
The new site will be a Joomla site. Currently, both sites are identical apart from the .htaccess and the configuration.php files.
So I'll set the redirection up as soon as I remove the content from the OLD site.
Many thanks again,
Terry

nicholas
Akeeba Staff
Manager
You're welcome!

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!

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!