Support

Admin Tools

#39200 redirect not working

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
3.10.0-alpha3
PHP version
7.4.33
Admin Tools version
6.1.10

Latest post by tampe125 on Thursday, 13 July 2023 04:05 CDT

[email protected]

I have a huge number of 404 errors that all contain the string /Print?tmpl=component in the url, so I'm wanting to redirect any URL's with that string to my home page.

I tried adding the following to the admin tools .htaccess maker in the Custom .htaccess rules at the top of the file area, but it didn't work.

RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)tmpl=component(&|$)
RewriteCond %{REQUEST_URI} ^/Print
RewriteRule ^(.*)$ /? [L,R=301]

All suggestions appreciated

tampe125
Akeeba Staff

Hello,

first of all, I suspect all those 404 errors are created by crawlers that are trying to guess URLs. This is something that the regular user is not going to do, so maybe you can just live with that, at the end of the day they are really trying to reach a page that does not exist.

That being said, I'd suggest you to double check if the rules that you created are correctly applied. Please take a look at this online tool, it's really powerful and it will quickly give you a feedback if everything is ok or not: https://htaccess.madewithlove.com/

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!