Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2005-10-24 21:32:58

Jeff_K
Archived Plugin Author
From: Vancouver, British Columbia
Registered: 2005-08-19
Posts: 202
Website

.htaccess file question

Not really touble, more like a question. What does the

<code>RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.+) – [PT,L]</code>

in the textpattern clean urls .htaccess file do? I am trying to set up a non-txp site and the .htaccess file wont work without these lines of code. Haven’t seen reference to them elsewhere on the net.

Offline

#2 2005-10-24 23:54:30

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: .htaccess file question

It means, if the URL refers to a normal file (“-f” for file, “-d” for directory), then let the web server handle it as normal (“PT” for PassThrough, “L” for Last rule/stop here).

All are listed in the mod_rewrite manual.


Alex

Offline

Board footer

Powered by FluxBB