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

18 lines
339 B
Plaintext

Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /~nowhereman/flatpress/branch/flatpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-zA-Z0-9_-]+)/$ ./static.php?page=$1 [L]
RewriteRule ^.+/comments/$ ./comments.php [L]
RewriteRule ^(.+)/$ blog.php [L]
</IfModule>