Support

Admin Tools

#29262 URL Redirection and Domains

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 on Tuesday, 10 April 2018 17:17 CDT

joomleb
Hi guys,
I need to assign a joomla page to a customer domain like it would be a one page site.
This is an example case:
I mean www.multi-property.com/jomres/property > www.myownproperty.com
NOT www.myownproperty.com > www.multi-property.com/jomres/property

The URL Redirection feature could be the case and solve the issue ?

nicholas
Akeeba Staff
Manager
Yes, URL redirection can do that. Create a new redirection:

Existing URL: http://www.myownproperty.com
New URL: jomres/property

When the user visits www.multi-property.com/jomres/property they will be redirected to http://www.myownproperty.com as requested.

Important: the New URL must NOT include the leading or trailing slash.

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!

joomleb
Hi Ncholas,
many thanks for suggestion. As far as i understand if I set in the reverse mode:

Existing URL: jomres/property
New URL: http://www.myownproperty.com

When the user visits http://www.myownproperty.com they will be redirected to www.multi-property.com/jomres/property as requested.

Am I right ?

Now, one step more. Is it possible that when the user visits http://www.myownproperty.com they will be redirected to www.multi-property.com/jomres/property content as requested, but keeping the "http://www.myownproperty.com" in the URL ?

nicholas
Akeeba Staff
Manager
No, it does not work like that. The URL redirection cannot see the domain name being used. It only sees the path, i.e. from the slash after the domain name onwards. What you are trying to do is not possible with URL 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!

joomleb
Hi Nicholas,
many thanks for support.
Please, Do you have any suggestion on where I should looking for it ?

nicholas
Akeeba Staff
Manager
The easy way to do this is host www.myownproperty.com as a separate domain and use a .htaccess redirection to divert its traffic to www.multi-property.com/jomres/property

The complicated way is to host www.myownproperty.com as an add-on domain to www.multi-property.com and use a .htaccess redirection to divert its traffic to www.multi-property.com/jomres/property.

I don't recommend the second option because it's way too complicated when it comes to HTTPS setup and managing the redirections without screwing up something on your main 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!

joomleb
Hi Nicholas,
many thanks for your assistance:

1 - I'm trying to be sure to understand what are differences from a "separate domain" to an "add-on domain". Please, if you have suggestion on where I have to read, or the exact words to perform a good search on it, ...all suggestions are welcome! :)

2 - In the case of a "separate domain" you suggest to "use a .htaccess redirection to divert its traffic". We are using Admin Tools to create the .htaccess. Please, How to "use a .htaccess redirection to divert its traffic to ..." ?

3 - We red about a "redirect" / "rewrite" difference (removing the R=301). Is this the case ?

nicholas
Akeeba Staff
Manager
1. Separate domain = a different hosting account per domain. Add-on domain = a single hosting account configured to serve all domains.

2. You will have to write your own .htaccess. After all, the separately hosted domain does not have Joomla installed on it.

3. It has nothing to do with what we're discussing.

Clarification: Please note that what you want to do involves writing your own, custom .htaccess directives. I cannot help with that as it's outside the scope of Admin Tools. My answer to your original question is that no, what you want to do is not possible with Admin Tools. Everything else was meant to be pointers for you to do further reading and come up with your own solution. I cannot write custom .htaccess files for you.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!