Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th January 2012, 12:31
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 424
Thanks: 33
Thanked 50 Times in 35 Posts
Send a message via Skype™ to SamTzu
Question 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?
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
Sponsored Links
  #2  
Old 5th January 2012, 13:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

That is done with aliases. Add each domain as alias and use "http://www.domain.fi" as redirect path.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 5th January 2012, 13:37
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 424
Thanks: 33
Thanked 50 Times in 35 Posts
Send a message via Skype™ to SamTzu
Default

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

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #4  
Old 5th January 2012, 13:39
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

No, you have to add http:// in front of the redirect path.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 5th January 2012, 13:40
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 424
Thanks: 33
Thanked 50 Times in 35 Posts
Send a message via Skype™ to SamTzu
Default

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

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #6  
Old 5th January 2012, 13:44
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

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
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
SamTzu (5th January 2012)
  #7  
Old 5th January 2012, 13:51
SamTzu SamTzu is offline
HowtoForge Supporter
 
Join Date: Apr 2007
Location: Helsinki
Posts: 424
Thanks: 33
Thanked 50 Times in 35 Posts
Send a message via Skype™ to SamTzu
Default


thx. You are the man.
__________________

Sami Mattila
Internet-Content

Telephone:
00358942833310
Email: firstname.lastname@internet-content.org
Shop: http://shop.internet-content.net
Site: http://www.internet-content.net
Blog: http://www.internet-content.net/en/blog
FB: https://www.facebook.com/internetcontent

Reply With Quote
  #8  
Old 13th January 2012, 14:05
hotze.com hotze.com is offline
Junior Member
 
Join Date: May 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #9  
Old 13th January 2012, 14:07
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 34,586
Thanks: 792
Thanked 4,983 Times in 3,903 Posts
Default

Create a .htaccess file and add your apache rewrite rules there instead of using the rewrite function in the domain settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #10  
Old 13th January 2012, 14:14
hotze.com hotze.com is offline
Junior Member
 
Join Date: May 2011
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by till View Post
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).
Reply With Quote
Reply

Bookmarks

Tags
apache, redirect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Local Website Url - 403 Forbidden Salital Installation/Configuration 11 11th August 2011 10:12
I need help to debug a slow website vtapas Server Operation 15 10th August 2011 10:50
new website cannot be located prithwis Installation/Configuration 3 23rd October 2010 11:38
cannot receive emails after made website online llamy General 20 27th December 2007 01:14
Website Forwarding / URL Redirection jockstrap Tips/Tricks/Mods 1 16th July 2006 12:28


All times are GMT +2. The time now is 11:47.


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