Support

Admin Tools

#17117 URL Redirect

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 user78057 on Monday, 26 August 2013 07:28 CDT

user78057
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 2.5.14
PHP version: 5.3.24
MySQL version: 5.0.96
Host: Go Daddy
Admin Tools version: 2.5.6
Description of my issue: I searched through all of the support tickets and tried all of the suggestions. Initially I was using the Go Daddy URL redirect. After purchasing Admin Tools I thought I would use the URL Redirection associated with it instead.

Existing URL:
index.php?option=com_igallery&view=category&igid=2&Itemid=131

New URL:
ted

If someone types in http://www.c22sail.com/ted they should redirect to http://www.c22sail.com/index.php?option=com_igallery&view=category&igid=2&Itemid=131

I have tried "Keep URL Parameters" checked "Yes" and "No". Neither works. I have also tried with the full path in the existing URL field.

Instead they are redirected to the 404 error page.

As I mentioned, this was working with the Go Daddy URL redirect, I just thought it would be easier to work with it in Admin Tools. I deleted it from the Go Daddy URL redirect and it up in Admin Tools. I couldn't get it to work. Now that I have tried to get it to work with Admin Tools, when I go back to Go Daddy, it will no longer work there either. I have another redirect still associated with Go Daddy that does work so I really don't understand what is going on.

nicholas
Akeeba Staff
Manager
First go to Global Configuration. You must have:
Search Engine Friendly URLs: YES
Use URL rewriting: YES
Then make sure that you have an .htaccess to support those features (you can create one with .htaccess maker) and that your SEF URLs work. Only then should you try using Admin Tools' URL redirection feature.

In your case the setup for the URL redirection should be:
Existing URL: /index.php?option=com_igallery&view=category&igid=2&Itemid=131
New URL: ted
Keep URL parameters: No

Make sure that "Enable the URL Redirection feature?" at the top of the URL Redirection page is set to Yes. If not, select Yes from the drop down and click on the "Save preference" button.

Finally make sure that http://www.c22sail.com/index.php?option=com_igallery&view=category&igid=2&Itemid=131 is a valid URL and works on your site.

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!

user78057
As soon as I enable Search Engine Friendly URLS to YES my whole site breaks. That is, anything beyond the home page goes to a 404.

The .htaccess maker is very complex and the instructions are also difficult to figure out what I am doing or what setting I really need. I would be willing to give it a try but I have the issue with Search Engine Friendly URLS first.

nicholas
Akeeba Staff
Manager
As soon as I enable Search Engine Friendly URLS to YES my whole site breaks. That is, anything beyond the home page goes to a 404.


This means that you have not created a proper .htaccess file. As a result this feature AND Admin Tools' URL Redirection (which relies on the SEF URL routing in Joomla!) will not work. Please consult the Joomla! documentation and forums about the proper steps required to get SEF URLs working on your server. After that Admin Tools' URL redirection feature will work – and you'll have better URLs on your site as well.

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!

user78057
Finally got the SEF URLs to work. It turned out to be some bad code in my htaccess file. That fixed I also got the URL redirect to work for one redirect but not the other.

This one works:

Existing URL: /photos/pat-page-photography
New URL: pat

This one doesn't:

Existing URL: photos/ted
New URL: ted

I can change the New URL to anything else and it will work. For example, tdm will work, but my name won't. This tells me something is hiding somewhere that conflicts with ted, but cannot figure out what it might be.

Any ideas?

nicholas
Akeeba Staff
Manager
The one which doesn't work has the wrong existing URL. If you set the existing URL to /photos/ted (with the leading forward slash) it will work.

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!

user78057
If it were only that easy. That was just an error in my typing the post. It doesn't like the word "ted". I can change the new URL to anything other than "ted" and it will work.

For example, this works:

Existing URL: photos/ted
New URL: tdm

Over the weekend I decided to try another approach. As a test I added a menu item and named it "ted" and pointed it to the existing URL of "photos/ted". That didn't work either. I renamed the menu item to "tdm" and pointed it to "photos/ted" and it worked. Changed it back to "ted" and it failed.

I used to have this working in my htaccess file but since I have installed Admin Tools I haven't been able to get this to work with either htaccess, Admin Tools redirect, or as a menu item.

nicholas
Akeeba Staff
Manager
You cannot redirect a URL if there is already a Joomla! menu item with that alias. That's how Joomla!'s URL routing work :(

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!

user78057
I give up. We aren't communicating. It used to work before Admin Tools. Now it doesn't.

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!