Support

Admin Tools

#27953 Help writing .htaccess lines

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 Friday, 14 July 2017 17:17 CDT

sethwcaton
 I love the URL Redirect feature of Admin Tools, but I have a simple problem that I'd like help solving. I just need to know how to write a 301 for the .htaccess maker.

I want http://www.tsitouch.com/downloads/specifications
to redirect to http://www.tsitouch.com/support-header/downloads/category/1-specifications

AND

http://www.tsitouch.com/downloads/specifications?download=5:tsitouch-the-executive-series
to redirect to http://www.tsitouch.com/support-header/downloads/category/10-executive-series-utility 

With URL Redirects,
both http://www.tsitouch.com/downloads/specifications
and http://www.tsitouch.com/downloads/specifications?download=5:tsitouch-the-executive-series
redirect to http://www.tsitouch.com/support-header/downloads/category/1-specifications

It has to do with the parameter ?download=5:tsitouch-the-executive-series at the end of the one link.

I found an example of code that may work, but have been unsuccessful at modifying it: https://stackoverflow.com/questions/13988815/htaccess-301-redirect-issue-with-url-variables

Here's what they suggested:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^id=123$
RewriteRule ^/?product\.php$ http://website.com.au/product_123.php? [L,R=301]

Help? Thanks!

nicholas
Akeeba Staff
Manager
You would need to add your custom rules in the "Custom .htaccess rules at the top of the file" area of the .htaccess Maker. Please note that you must not add a RewriteEngine or RewriteBase line. These are part of the Joomla! SEF URL section which is always added to your file.

That said, we cannot provide support for writing or troubleshooting custom .htaccess directives. That would be support for the Apache web server. Unfortunately that's third party software and support for it falls outside the scope of our services per the Terms of Service.

Before you ask me to help you just this one time, there's a good reason we don't offer support for custom directives. How they work is very dependent on how your server is set up by your host. We cannot assume the risk of doing hosting support for the simple reason that we are not your host, therefore we have no control over (or knowledge of) the exact server configuration applied by your host. The only risk we're willing to assume is with the .htaccess Maker generated directives and only in the context of what's described in our documentation. If you are not sure which custom directive to use and/or have a problem with it please do ask your host. After all, that is exactly what you are paying them for :)

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!

sethwcaton
It's ok - I understand what you mean.

However, I'm looking for suggestions to try, as I'm not worried about "breaking something" on my server. Perhaps it would help if I posted this question elsewhere, like Stack Exchange, or the Joomla.org forum.

Thanks for your time!

nicholas
Akeeba Staff
Manager
It's be best to ask that in an Apache specific forum. I believe Stack Overflow has such a forum.

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!