Support

Admin Tools

#20520 URL Redirection

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 Friday, 18 July 2014 11:01 CDT

bwls
 I have a single redirection created so far and it is allowing access to the page when used. My question is that when the page is displayed the address bar shows the url including the category.

http://joomla-dev.com/learning-never-stops is the redirection link to the page.

http://www.joomla-dev.com/my-blog/29-learning-never-stops.html is the address bar contents.

Is this correct?

Search Engine Friendly URL's and Use URL rewriting are ON.

The .htaccess file looks to be Ok as well.

Thanks
Bill S.

nicholas
Akeeba Staff
Manager
Sorry, we do not understand your question. What is the URL you don't want to show and what is the URL you want to show? Also, what is the Existing URL and the New URL in your redirection?

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!

bwls
Hi Nicholas.

Attached is part of the screen that shows the URL's invoived.

The new URL (http://http://joomla-dev.com/learning-never-stops) does work but when the page is displayed, the address bar shows the existing URL.

My question is if this is correct or do I have something configured improperly?

Thanks,
Bill Slaughter

nicholas
Akeeba Staff
Manager
What you observe is the expected and desired behaviour. This is a URL redirection feature. As the name promises, when you visit the /learning-never-stops URL it is redirected using an HTTP 302 redirection to http://www.joomla-dev.com/my-blog/29-learning-never-stops.html and of course that shows in the address bar.

If you want the canonical URL which will be displayed in the browser to be http://www.joomla-dev.com/learning-never-stops you need to to the exact opposite:

1. Create a hidden menu
2. Create a menu item in the hidden menu pointing to this article and give it an alias of learning-never-stops
3. Set the Existing URL to http://www.joomla-dev.com/learning-never-stops and New URL to http://www.joomla-dev.com/my-blog/29-learning-never-stops.html

Now everyone visiting the undesired URL (http://www.joomla-dev.com/my-blog/29-learning-never-stops.html) will be redirected to http://www.joomla-dev.com/learning-never-stops (desired URL) and those who visit the desired URL will stay on the desired URL.

This is how the /download.html URL is configured on our site ;) Try visiting https://www.akeebabackup.com/downloads.html and you'll see that the trailing s disappears from downloads.html. We used the same method I described above so yes, it's very well tested :)

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!