HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   aliasdomain doesn't redirect (http://www.howtoforge.com/forums/showthread.php?t=48727)

staatslot 12th September 2010 11:19

aliasdomain doesn't redirect
 
Hi all,

This is the situation:
I have www.website1.com and www.website2.com
www.website1.com is installed as a website, so it has a folder on the server and everything works fine.

I want www.website2.com to redirect into a subfolder of www.website1.com.
Lets say the subfolder is called test.

I added a aliasdomain with this information:
domain: website2.com
parent website: website1.com
Redirect type R
redirect path /test/
auto subdomain *.
Active: checked

But when i visit www.website2.com I just get the root of www.website1.com.
The addressbar is displaying website2.com.

I changed the flag, I even tried to redirect to www.differentsite.com but it allways goes to the root of www.website1.com.

Can anyone please help?

till 12th September 2010 18:17

Use redirect type "noflag". If I remember correctly, the redirect will only work for the domain that you specified and not * wildcards. So your redirect will work for website2.com but not www.website2.com.

If a domain shall have its own folder, then it is recommended to create a new website and not a aliasdomain.

staatslot 13th September 2010 09:24

Quote:

Originally Posted by till (Post 239086)
Use redirect type "noflag". If I remember correctly, the redirect will only work for the domain that you specified and not * wildcards. So your redirect will work for website2.com but not www.website2.com.

If a domain shall have its own folder, then it is recommended to create a new website and not a aliasdomain.

Thanks, that cleared something up.
I works just as long as I don't use the * for automatic subdomain.
I prefer the * so all subdomains are being redirected, but i'm glad this works for now!


All times are GMT +2. The time now is 01:10.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.