Re: rewrite condition problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Great, thank you very much, it helped. I forgot about drupal's nice URLs rewrite rules in .htaccess.
Drupal  has been rewriting ^/free_trial$ to ^/index.php?q=free_trial

so the final working solution is

    RewriteCond %{HTTP_HOST} !^www\.example\.com$
    RewriteCond %{REQUEST_URI} !^/free_trial[1-9]?[1]? [OR]
    RewriteCond %{REQUEST_URI} ^/index.php$
    RewriteCond %{QUERY_STRING} !^q=free_trial[1-9]?[1]?
    RewriteRule ^/(.*) http://www.example.com/$1 [R=301,L]

On 10/05/2011 12:52, Eric Covener wrote:
. Any suggestion how i could make this work or any idea,
why my rewrite condition doesn't work.
RewriteLog

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See<URL:http://httpd.apache.org/userslist.html>  for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
    "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux