Fraenkiman 0928ae8a70 PrettyURLS plugin does not prevent directory browsing
Preventing directory browsing via PrettyURLS plugin when .htaccess is deleted by the user. ...as an addition to #No. 174
2022-12-26 02:36:47 +01:00

21 lines
553 B
Plaintext

AddType application/x-httpd-php .php .htm .html
Options -Indexes
RewriteEngine On
RewriteBase /~nowhereman/flatpress/
#RewriteCond %{REQUEST_FILENAME} -f
#RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^entry([0-9]{6})-([0-9]{6})\.html$ ./index.php?entry=entry$1-$2
RewriteRule ^comments([0-9]{6})-([0-9]{6})\.html$ ./comments.php?entry=entry$1-$2
#RewriteRule ^page-([-_0-9a-zA-Z]+)\.html$ static.php?page=$1
RewriteRule ^index\.html$ index.php
#RewriteRule ^images/(.*) fp-content/images/$1
#RewriteRule ^attachs/(.*) fp-content/attachs/$1