[users@httpd] Subdomain Rewrite including HTTP - HTTPS

2015-01-11 Thread Matt .
Hi All, I'm having some trouble at the moment with a rewrite rule which keeps the filled in domainname in the addressbar of the browser. I want to rewrite: sub.foo.tld - foo.tld/foo/sub as sub is %1 and foo is %2 I thought this would do the trick. RewriteCond %{HTTP_HOST} ^([^.]+)\.foo\.tld$

Re: [users@httpd] Subdomain rewrite

2012-03-22 Thread Rich Bowen
On Mar 21, 2012, at 8:09 PM, Chris Arnold wrote: Apache 2.2.12 on SLES11 SP2. I am trying to get a subdomain working via a rewrite rule, http://helpdesk.teknerds.net. The rule is in its own vhost (helpdesk.teknerds.conf. I am confused if it needs its own vhost or if the rewrite should go

[users@httpd] Subdomain rewrite

2012-03-21 Thread Chris Arnold
Apache 2.2.12 on SLES11 SP2. I am trying to get a subdomain working via a rewrite rule, http://helpdesk.teknerds.net. The rule is in its own vhost (helpdesk.teknerds.conf. I am confused if it needs its own vhost or if the rewrite should go in teknerds.conf vhost) and follows: VirtualHost *:80