From 5f6be2729161503016864b7c9c8d3a89dba31bf4 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Tue, 16 Sep 2008 02:49:48 +0000 Subject: [PATCH 1/1] rewrite extensionless script requests Apache rewrite rule to redirect /script to *.plp if it exists, so that digraphs.plp (and other files in the future) can be found at just /digraphs. Nobody cares (or should care) about server side file type. --- .htaccess | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.htaccess b/.htaccess index f8571b4..f322d75 100644 --- a/.htaccess +++ b/.htaccess @@ -1 +1,9 @@ DirectoryIndex index.plp + +RewriteEngine on +RewriteBase / + +# add .plp if a file exists with .plp appended (topdir only) +RewriteCond %{REQUEST_FILENAME}.plp -f +RewriteRule ^/*([^/]+)(.*) $1.plp$2 + -- 2.30.0