Support

Admin Tools

#39088 Admin tools redirection: exporting to htaccess and using regex

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
4.2.9
PHP version
8.1
Admin Tools version
n/a

Latest post by tampe125 on Tuesday, 13 June 2023 06:08 CDT

artax

Good morning, I know it's a bit of a strange question, but here it goes.

I need to redirect some urls: it's about a component of a previous joomla installation...for some reasons they're stuck on Google somewhere and Search Console is nagging about those urls leading to 404. Before I can get to to bottom of it, I'd want to redirect those urls, using regex. I am not new to this, I've already done it extensively on htaccess.

This time though, for some unkown reasons, that doesn't work. However, I can redirect those urls via Admin Tools redirection feature...where I can't use regex though.

My question is, where can I see the code for the redirections made by AdminTools? I mean, the code run for each redirection. That would help me to debug what I'd like to put in htaccess for redirecting those urls using regex.

Thanks, I'd appreciate your help,

Have a good day.

tampe125
Akeeba Staff

Salve,

se possibile dovrebbe utilizzare il redirect tramite .htaccess perchè è molto più veloce e facile da manutenere, invece di dover creare decine e decina di entry all'interno di Admin Tools.

Le suggerisco di utilizzare questo tool online: https://htaccess.madewithlove.com/

E' un tester per la sintassi .htaccess, per cui può effettuare delle prove online per vedere cosa cambiare nella regex in modo che funzioni correttamente

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!

artax

Grazie per la risposta,

è per l'appunto quello che intendo fare, servirmi di htaccess come fatto tante altre volte. La domanda però era dove sono salvate le stringhe relative ai redirect fatti con AdminTools.

È possibile saperlo?

Grazie.

tampe125
Akeeba Staff

Sono salvate dentro il database. Detto questo, non è possibile prendere spunto dal codice di Admin Tools perchè avviene con un linguaggio differente (PHP) rispetto a quello .htaccess . La sintassi delle regaular expression è differente.

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!

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!