Re: [users@httpd] redirect only if a URL does not exists

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

 



On 8/22/06, Lothar Krenzien <lkrenzien@xxxxxx> wrote:
Hi there,

I'm using Apache 2.2 from the xampp project on Windows XP and 2003. Now I want to redirect a request *ONLY* if the URL does not exist. I know the !-U flag for a RewriteCond but can't get it working. Here's what I tried to do :

<IfModule mod_rewrite.c>
 RewriteEngine On
 ...
 RewriteCond    %{REQUEST_URI} !-U
 RewriteRule    ^/(.*).do  http://localhost/Portal_Update.php
 ...
</IfModule>

This results in an 503 error  so it seems that the RewriteRule was not executed.

Start by using the RewriteLog so you can see exactly what is in the
variables you are using.

Joshua.

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