Support

Admin Tools for WordPress

#33936 URL Redirection with Admin Tools Pro for WP

Posted in ‘Admin Tools for WordPress’
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

WordPress version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by on Friday, 20 November 2020 20:17 CST

vrans99

Hi.

I am a little confused with the URL Redirection feature.

In the documentation section, you have the example of forwarding my domain to (for example) google.com as an external url, but what about if I want to redirect URLs coming from (for example) google.com to my site's url.

I am in the process of converting all my Joomla sites to WP and I would like to redirect previous urls that are listed in google.com/bing.com to new urls in my site.

For example, if someone find https://mysite.com/index.php/menu/series/video-1 in google.com but, after the conversion to WP, the new url is https://mysite.com/videos/video-1, what is the best way to approach this?

Also, is it possible to use a wildcard to minimize the entries? For example, I need something like this:

My Joomla Site urls:                                                   ->   My new WP Site urls:
https://mysite.com/index.php/menu/series/video-1    ->   https://mysite.com/videos/video-1
https://mysite.com/index.php/menu/series/video-2    ->   https://mysite.com/videos/video-2
https://mysite.com/index.php/menu/series/video-3    ->   https://mysite.com/videos/video-3
https://mysite.com/index.php/menu/series/video-4    ->   https://mysite.com/videos/video-4

One of my Joomla sites has thousands of urls and it would be awesome to achieve the URL Redirection with fewer queries. Is it possible? If so, how can I do this?

For the previous example, can I use something like this:
https://mysite.com/index.php/menu/series/%    ->   https://mysite.com/videos/%

Your help is really appreciated.

Thanks.

tampe125
Akeeba Staff

Hello,

I'm sorry but URL redirection works just for a single URL, you can't create wildcards.

If you want to redirect URLs that match a particular expression, the most effective solution is to use .htaccess redirects, since they happen even before visitors touch your site, improving their experience.
Htaccess directives could be a little hard to write, so I'd suggest to use this online tool to test them: https://htaccess.madewithlove.be/

Davide Tampellini

Developer and Support Staff

🇮🇹Italian: native 🇬🇧English: good • 🕐 My time zone is Europe / Rome (UTC +1)
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.