Support

Admin Tools

#14120 URL Redirection - site in folder to URL

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 klementz2 on Tuesday, 13 November 2012 16:33 CST

klementz2

Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? URL redirection
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes, URL redirection page, htaccess page
Joomla! version: (2.5.8)
PHP version: (5.2.17 or 5.3.18)
MySQL version: (5.5.28-log)
Host: (bluehost)
Admin Tools version: (2.4.2)

Description of my issue:

My main domain is www.clements.ca. I also have www.coinzoo.net which is in a folder named coinzoo. The coinzoo domain is all set up and working fine, with its own copy of admintools, etc.

Problem is, the site can still be accessed from www.clements.ca/coinzoo. I need to prevent this, and have tried many different things.

In the URL Redirection feature of admin tools in the clements.ca site, I have set up and entry with Existing URL = http://www.coinzoo.net and New URL = coinzoo. It does not work.

Any ideas?

nicholas
Akeeba Staff
Manager

No, this will never work. It has to do with the way Apache, redirections and Joomla! work.

When you request a URL, Apache first checks if a directory or file under that name exists. If it does (as in your case), it will serve it.

If the requested file or directory does not exist, Apache normally throws an error page. Here comes the .htaccess file you put in your site's root. It tell Apache "dude, if you can't find a file/folder by that name, send it to Joomla!'s index.php". And that's what Apache does. Joomla! does some pre-processing on that URL and then sends it to Admin Tools to do the redirection.

Therefore, as long as you have that directory present in your main site there's not a cat's chance in hell that you will ever be able to get Admin Tools (or any other Joomla! component/plugin) to do a redirection for the simple reason that Apache will never, ever route your request through Joomla!'s index.php.

There are various .htaccess techniques to achieve your result, but it's well beyond the kind of service I can provide through this ticket system.

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!

klementz2

Okay, I was afraid it would be something like that. Thanks for the response.

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!