HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   Website redirection (http://www.howtoforge.com/forums/showthread.php?t=55645)

SamTzu 5th January 2012 12:31

Website redirection
 
Is there a way to redirect several different domains in ISPC3 to one site?

This seems to work OK with Alias domains but aliases don't "redirect" so the website is displayed with wrong domain address.

If Apache rules are also used with redirect options an infinite loop is usually the result.

I would like to have this setup...

domain1.com -> www.domain.fi
www.domain.com -> www.domain.fi

domain1.net -> www.domain.fi
www.domain.net -> www.domain.fi

domain2.com -> www.domain.fi
www.domain.com -> www.domain.fi

domain2.net -> www.domain.fi
www.domain.net -> www.domain.fi

etc.


How should this setup be configured so that infinite loop does not result?

till 5th January 2012 13:12

That is done with aliases. Add each domain as alias and use "http://www.domain.fi" as redirect path.

SamTzu 5th January 2012 13:37

To clarify... instead of adding domain.fi in the alias name field I should add www.domain.fi?

till 5th January 2012 13:39

No, you have to add http:// in front of the redirect path.

SamTzu 5th January 2012 13:40

It does not seem to be possible to add www.domain.com in the Domain field on Alias settings.

till 5th January 2012 13:44

The redirect path field, not the domain field.

Domain: domain1.net
Parent website: domain.fi
Redirect type: no flag
Redirect path: http://www.domain.fi

SamTzu 5th January 2012 13:51

:)
thx. You are the man.

hotze.com 13th January 2012 14:05

redirect path to a FILE and not to a directory?
 
Good day,

I want to redirect to a file and not to a directory (ISPConfig Manual section 5.5 only writes about redirect to a path.

so, I want to redirect www.foo.bar to http://www.otherfoo.bar/bla/blubb/lalelu.html

it is not an option to let the "other" site at otherfoo.bar create an appropriate directory.

How can this be solved? Within apache directly this is not a problem at all.

thanks, martin

till 13th January 2012 14:07

Create a .htaccess file and add your apache rewrite rules there instead of using the rewrite function in the domain settings.

hotze.com 13th January 2012 14:14

Quote:

Originally Posted by till (Post 271378)
Create a .htaccess file and add your apache rewrite rules there instead of using the rewrite function in the domain settings.

yes, but then the enduser has to use a FTP client etc ... else one just has to edit the line within ISPConfig, this would be a much smarter, quicker and easier solution for everybody involved (even for support).


All times are GMT +2. The time now is 20:12.

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