Support

Admin Tools

#37447 Redirect does not work

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 nicholas on Thursday, 28 July 2022 09:33 CDT

hillen

I subscribed to Admin Tools and installed it.

I made two links as shown in attachment Redirect URL screen.png

https://gregoriusblad.nl/woord

https://gregoriusblad.nl/gb202232

Both links do not work and give:

 

Not Found

The requested URL was not found on this server.
Apache Server at gregoriusblad.nl Port 443

I ask you for help.

 

Ben Hillen

nicholas
Akeeba Staff
Manager

I can tell you that this feature for sure works on Joomla 4.1.5 as we're using it extensively on our own site here. For example, if you visit https://www.akeeba.com/downloads you get redirected to https://www.akeeba.com/download.html (the actual URL of our download menu item). This is done with Admin Tools' URL Redirection feature.

It is very important to note that the prerequisite for this to work is that your site has both “Search Engine Friendly URLs” and “Use URL Rewriting” enabled in its Global Configuration. The latter option requires having an Apache, Litespeed, NginX or IIS web server with the appropriate server configuration file (.htaccess for the former two, web.config for the latter, typically nginx.conf for NginX but it depends on the server set up) with the Joomla URL rewriting code block in it. For example, if you have an Apache or LIteSpeed server (most sites!) you can either use Admin Tools' .htaccess Maker OR renamed Joomla's htaccess.txt file to .htaccess minding that dot in front of htaccess, it's important.

Without using these two options you can only perform redirections by adding index.php?/ in the URL, i.e. https://gregoriusblad.nl/index.php?/woord which does redirect you correctly as you can see.

So, what do the two Global Configuration options really do?

The “Search Engine Friendly URLs” allow you to drop the question mark. The previous URL could now be written as https://gregoriusblad.nl/index.php/woord and still work. Enabling this options does not require a .htaccess, web.config or nginx.conf file. This all happens inside Joomla's initialisation code which runs before Admin Tools' URL Rewriting feature.

The “Use URL Rewriting” allows you to remove the /index.php from the URL. The previous URL could now be written as https://gregoriusblad.nl/woord and still work. This feature does require a .htaccess, web.config or nginx.conf file. The magic happens inside your web server, before Joomla even starts executing. Basically, it internally rewrites the URL https://gregoriusblad.nl/woord to https://gregoriusblad.nl/index.php/woord and asks Joomla to handle that latter URL. That's why this option is only available if the “Search Engine Friendly URLs” option is enabled.

Since all of that happens outside of Admin Tools it's not under our control.

I hope that helps!

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!

hillen

Thanks for your explanation.

However it is not possible for me to get working redirects using index.php?/ in the URL e.g. https://gregoriusblad.nl/index.php?/woord routes to the homepage and not to the specified URL

Also there is no result after setting ON “Search Engine Friendly URLs” and “Use URL Rewriting”.

Next, changing access.txt to .access gives:

     Internal Server Error

     The server encountered an internal error or misconfiguration and was unable to complete your request.

     Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.

     More information about this error may be available in the server error log.

     Apache Server at gregoriusblad.nl Port 443

also front-end same error.

Could you help me?

 

Regards,

Ben Hillen

nicholas
Akeeba Staff
Manager

While you can it's neither straightforward nor supported.

In the Visiting This you would need to enter exactly the part of the URL after https://gregoriusblad.nl/ which you want to lead to a redirection. In your case that would be index.php?/woord.

Visiting https://gregoriusblad.nl/index.php?/woord (and exactly that ONLY) will trigger the redirection. The following URLs will NOT work:

  • https://gregoriusblad.nl/index.php/woord (missing question mark)
  • https://gregoriusblad.nl/index.php?woord (missing slash)
  • https://gregoriusblad.nl/index.php?/Woord (lowercase / uppercase mismatch)

You should really talk to your host and have them enable mod_rewrite for your web server so that you can use SEF URLs. Otherwise you're pretty much causing yourself a lot of unnecessary pain.

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!

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!