Support

Admin Tools

#32130 Mass loading of redirects

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 Sunday, 12 January 2020 17:17 CST

vmurphy
I have a new restructured website and want to put a bunch of redirects in place using admintools. The volume is about 200 so I'm trying to avoid keying them all in. Would it be a terrible idea to directly load into the mysql table - admintools-redirects. Are there joins I'd need to consider or is it just that table. Any info much appreciated.

nicholas
Akeeba Staff
Manager
It is just the #__admintools_redirects table :) Let me explain what goes in each field:

  • id auto-incrementing counter. Only used to delete and publish / unpublish items in the interface. Omit it completely to have it automatically increment.
  • source This URL must exist on your site i.e. be accessible even without Admin Tools. This can also be outside of your site.
  • dest This is the URL, relative to your site's root, that will trigger the redirect when accessed.
  • ordering Redirections with lower ordering numbers are considered first.
  • published When 0 the redirection rule is inactive and will do nothing. When 1 the redirection rule is active and result in a redireciton.
  • keepurlparams Set to 0 if unsure. If set to 1 the redirection will include any URL query parameters sent to the "dest" URL.


If you want the URL /foo/bar to redirect to /hello-there.html set source = /hello-there.html and dest = foo/bar while keeping published = 1 and keepurlparams = 0.

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!