
19th August 2007, 13:00
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
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
|

19th August 2007, 14:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
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.
|

21st August 2007, 12:23
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
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
|

22nd August 2007, 18:29
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|

30th August 2007, 19:16
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
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]
|

31st August 2007, 17:51
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,665
Thanks: 1,896
Thanked 2,593 Times in 2,444 Posts
|
|
|

1st September 2007, 14:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
Please try:
[L]
at the end of the rewrite rule unstead of [L,R]
|

1st September 2007, 15:07
|
|
Senior Member
|
|
Join Date: Jul 2007
Location: Italy
Posts: 654
Thanks: 77
Thanked 12 Times in 7 Posts
|
|
Hi Till, the problem persist. Have I restart the service?
Thanks
|

1st September 2007, 15:19
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 31,903
Thanks: 693
Thanked 4,196 Times in 3,212 Posts
|
|
If you changed it in the vhost file manually, then yes. If you changed it in the ISPConfig interface, then no.
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 06:23.
|
Recent comments
1 day 36 min ago
1 day 7 hours ago
1 day 11 hours ago
1 day 12 hours ago
1 day 21 hours ago
2 days 6 hours ago
2 days 7 hours ago
2 days 11 hours ago
2 days 15 hours ago
2 days 15 hours ago