Checking if file or directory exist

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

 



Hello everyone,

So I'm still fighting with mod_rewrite a little but I have made progress... Basically, what I am looking to do now, is check to see if a file/folder exists and if not rewrite and give control to my p.php script to look it up in the database.

Here are the rules that I'm using:

		RewriteCond %{REQUEST_FILENAME} !-f
                RewriteCond %{REQUEST_FILENAME} !-d
                RewriteRule . /p.php [L]

Now, that part works just fine, but what I can't seem to work out is the sublinks. I have some links that look like this: HTTP://purl.schreurprinting.com/mail.php?purl=jasonpruim112 Now mail.php exists and so it should NOT be rewriting, but it is... Basically... If someone goes to mail.php?purl=jasonpruim112 I want mail.php to handle the request... Am I making sense?

Anyone have any clue what I need to do?

Thanks for looking!


--

Jason Pruim
Raoset Inc.
Technology Manager
MQC Specialist
11287 James St
Holland, MI 49424
www.raoset.com
japruim@xxxxxxxxxx





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