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