Skip to content

Commit 0928ae8

Browse files
committedDec 26, 2022
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
1 parent fc9bcf4 commit 0928ae8

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed
 

‎fp-plugins/prettyurls/htaccess-new

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
Options -Indexes
2+
13
<IfModule mod_rewrite.c>
24
RewriteEngine On
35
RewriteBase /~nowhereman/flatpress/branch/flatpress/

‎fp-plugins/prettyurls/htaccess.txt

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
AddType application/x-httpd-php .php .htm .html
2+
Options -Indexes
23

34
RewriteEngine On
45
RewriteBase /~nowhereman/flatpress/

‎fp-plugins/prettyurls/plugin.prettyurls.php

+2
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,8 @@ function setup() {
628628
629629
# Thanks again WP :)
630630
631+
Options -Indexes
632+
631633
<IfModule mod_rewrite.c>
632634
RewriteEngine On
633635
RewriteBase ' . $blogroot . '

0 commit comments

Comments
 (0)