Support

Admin Tools

#11354 URL redirection didn't work for specific links

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, 09 March 2012 03:10 CST

balitechdude
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? No
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: (2.5.1)
PHP version: (5.2.17 )
MySQL version: (5.0.95-community-log )
Host: (Jaguar PC)
Admin Tools version: (2.2.0)

Description of my issue:
Hi, we just have our new website up and running and tried to use AT PRo to redirect old URLs to a new URLs and it didn't work for specific URLs.

For example, the old link is www.mydomain.com/cmspage.aspx?id=4 and the new link is www.mydomain.com/index.php?option=com_content&view=article&id=69&Itemid=481

Already tried it and it didn't work for that case but it working well if I redirect .html or .php or even links without suffix.

Please advice.

Acung

nicholas
Akeeba Staff
Manager
You should be able to do that, but it would require a change in your .htaccess. by default, anything with an aspx extension is not being caught by the .htaccess, does not end up in Joomla! and no redirection tool will handle it.

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!

balitechdude
Could you please advice on how to have it done... what need to be change in htaccess file. Already consult with the host support team and seems they still cannot resolved the issue.

Thanks in advance.

Acung

nicholas
Akeeba Staff
Manager
Even though this is outside the scope of our support, I can give you some generic guidelines. Open your .htaccess file and take a look towards the end of it. You'll see a line which looks like this:
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
You have to change it to read
RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw|asp|aspx))$ [NC]
Please remember, your mileage may vary. This kind of redirections has never been 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!

balitechdude
Hi Nicholas, we've testing many things together with our hosting Server Sysadmin but still cannot found a solution on how to make it work. Already tried your suggestion as well, but it's not working as expected, all links redirected to homepage.

Could you please assist us to solved this issue? I don;t mind for additional charge if required.

Please advice.
Acung

nicholas
Akeeba Staff
Manager
I will be perfectly honest with you. Besides the .htaccess trick I mentioned above, I don't have any other ideas. There is no point paying me to not find a solution :(

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!

balitechdude
Hi Nicholas, thanks for the statement :-)
I found if AceSEF moved URL function able to handle this redirection smoothly, maybe you need to look at it and update your AT Pro redirect URL function.

Regards,

Acung

nicholas
Akeeba Staff
Manager
Our software works very differently. Admin Tools deliberately keeps the URL query parameters when redirecting and I don't want to change that (even though it's literally two lines of code). AceSEF, being a SEF component, doesn't keep the URL parameters. Well, that's a good reason to use a SEF extension :)

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!