Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2001
    Posts
    99

    Arrow 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?

  2. #2
    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?
    HostHideout.com - Where professionals discuss web hosting.

    • Chicken

  3. #3
    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.

  4. #4
    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).
    HostHideout.com - Where professionals discuss web hosting.

    • Chicken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •