Re: Checking if file or directory exist

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

 




On Sep 11, 2008, at 7:30 AM, Eric Covener wrote:

On Thu, Sep 11, 2008 at 6:28 AM, Jason Pruim <japruim@xxxxxxxxxx> wrote:

Here is my .htaccess file... Does it look right?

Options +FollowSymlinks
RewriteEngine on
RewriteLog /var/log/purl.virt.rewrite.log

is this valdi in .htaccess?

My guess is no since it's not working...



RewriteLogLevel 9


where's RewriteBase?

I thought that rewritebase was optional?


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

You're not capturing or passing anything, and how do you get to mail.php?

after you load purl.schreurprinting.com/jasonpruim112 there will be a link to http://purl.schreurprinting.com/mail.php?purl=jasonpruim112

The basic premise I have been working off of is just simply if the file exists, let that file handle serving the page, if it DOESN"T exist pass it to p.php to handle it.

So with that understanding I don't think that I need to capture anything in the rewritecond's other then if the file exists correct?

--

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