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
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.
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
Did you take a look at the URL rewriting guide? http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
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]
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
If you changed it in the vhost file manually, then yes. If you changed it in the ISPConfig interface, then no.
How can I change it in the ISPConfig interface? I have changed it manually and I have restarted the apache but nothing has changed.