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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th August 2007, 13:00
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default Subdomains Particular Redirection

Hi guys,

I need to rewrite the URL from www.mydomain.tld/webmail to webmail.mydomain.tld

How can I do it?

Furthermore, I need to redirect all subdomains in a main domain.

I would like to use the wildcard *.mydomain.com to specify that all domains must go to the main domain. Is it possible?

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 19th August 2007, 14:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,476
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Please have a look here:

http://www.howtoforge.com/forums/showthread.php?t=12783

Thaere are also mny other howtos in the internet that describe apache redirect rules for different purposes.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 21st August 2007, 12:23
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

The two solutions doesn't work on my system!
I've tried to change the source code deleting the "[R]" and nothing happens.
I've tried to use the .htaccess but is very difficoult for me.

I would like to use the wildcard *.mydomain.com to specify that all domains must go to the main domain and the subdomains registered go to the forward url.

Thanks
Reply With Quote
  #4  
Old 22nd August 2007, 18:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Did you take a look at the URL rewriting guide? http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 30th August 2007, 19:16
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi Falko,

thank you for your suggestions but it very difficoult for me configure a subdomain with ispconfig and fix the problem of the URL rewriting.

I have set the wildcard in the dns settings so my domain has:

www.mydomain.tld
*.mydomain.tld

I would like to write http://webmail.mydomain.tld without the rewriting in to http://www.mydomain.tld/_webmail/htdocs

How can I do it ?

Thanks


This is what I have see into the Vhost file.

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^webmail\.mydomain\.tld [NC]
RewriteRule ^/(.*)         http://www.mydomain.tld/_webmail/htdocs/$1 [L,R]
Reply With Quote
  #6  
Old 31st August 2007, 17:51
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

This page might help you: http://www.stevenhargrove.com/redirect-web-pages/
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 31st August 2007, 17:56
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi falko,

thank you for your suggestion but it doesn't help me.
I would like to write http://webmail.mydomain.tld without the rewriting in to http://www.mydomain.tld/_webmail/htdocs

thanks
Reply With Quote
  #8  
Old 1st September 2007, 14:40
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,476
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Please try:

[L]

at the end of the rewrite rule unstead of [L,R]
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 1st September 2007, 15:07
vaio1 vaio1 is offline
Senior Member
 
Join Date: Jul 2007
Location: Italy
Posts: 664
Thanks: 77
Thanked 12 Times in 7 Posts
Default

Hi Till, the problem persist. Have I restart the service?

Thanks
Reply With Quote
  #10  
Old 1st September 2007, 15:19
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,476
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

If you changed it in the vhost file manually, then yes. If you changed it in the ISPConfig interface, then no.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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
Domains and Subdomains braakiss Installation/Configuration 8 16th August 2007 14:27
customer's subdomains t-mug Installation/Configuration 5 16th August 2007 14:22
domains, subdomains, webspace, bandwidth.. TheRudy General 17 19th February 2007 18:31
subdomains and ispconfig thesquib Installation/Configuration 4 1st December 2006 15:24
postfix + subdomains andypl Installation/Configuration 6 23rd June 2006 17:24


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


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