Reply to comment

a little help?

Hi,
I'm trying to put this into practice and greatly simplify my htaccess file and it's only half working for me, I wonder if you could take a minute to consider what might be wrong.

here's the full contents of my test file:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(drupal|test2|test3)\.domain\.org$ [NC]
RewriteCond %{HTTP_HOST} ^(.*)\.domain\.org$ [NC]
RewriteRule ^(.*)$ http://domain.org/$1 [L,R=301]

What I get is the rewrite works for www.domain.org -> domain.org but www.drupal.domain.org doesn't rewrite to drupal.domain.org (nor do the two other subdomains) and any.domain.org will die rather than redirect to domain.org

Thanks in advance,
david

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <q> <blockquote> <cite> <abbr> <a> <ins> <del> <strong> <em> <hr> <address> <code> <dfn> <kbd> <pre> <samp> <var> <h2> <h3> <h4> <h5> <h6> <dl> <dt> <dd> <ol> <ul> <li> <caption> <col> <colgroup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <bdo> <ruby>
  • Lines and paragraphs break automatically.
  • Insert Flickr images: [flickr-photo:id=230452326,size=s] or [flickr-photoset:id=72157594262419167,size=m].
By submitting this form, you accept the Mollom privacy policy.