Results 1 to 4 of 4
-
08-26-2001, 12:10 AM #1Junior Guru Wannabe
- Join Date
- Mar 2001
- Posts
- 99
Rewriting URL and another httpd.conf ?
Hello,
I was just wondering if anyone knew hot to turn of the default rewrite url that is located in httpd.conf.
Background:
It seems as if anysubdomain.domain.com will get redirected to www.domain.com
I looked up a lot of threads in the boards, and no one seems to know how to turn this off, especially when they add new domains. Is there a way to simply turn it off by default?
Also, when I make CP changes httpd.conf dumps changes I made to it, most notably my modd throttle status entry.
There has to be a better way to deal with this, any one know?
-
08-26-2001, 01:29 AM #2Web Hosting Master
- Join Date
- Jun 2000
- Location
- Southern California
- Posts
- 12,136
Well on the redirection issue, this isn't automagically happening (that's the good news), it is being told to do that (though I realize you aren't intending for this to happen).
Guessing you have a wildcard to either the IP of the domain *or* the IP of the server and you have the domain set as the server name?
-
08-28-2001, 06:20 PM #3Newbie
- Join Date
- Aug 2001
- Posts
- 29
You can turn off mod_rewrite for a virtual site
by edit httpd.conf with RewriteEngine On to RewriteEngine Off
with the virtual site.
However if you do this, you aren't able to reach the siteadmin
for that virtual site.
Does anyone know if it is possible to undo a rewrite rule
via .htaccess in the /web directory for a virtual site ?
I turned on wildcards for a domainname in DNS and httpd.conf
but the RewriteEngine turns everything to www.domainname.tld
instead of subdomain.domainname.tld , so it isn't possible to
let subdomains redirect to a directory.
-
08-28-2001, 08:46 PM #4Web Hosting Master
- Join Date
- Jun 2000
- Location
- Southern California
- Posts
- 12,136
Yes it's possible, search for info on DNS include for the virtual site (this would be added to httpd.conf).