 0928ae8a70
			
		
	
	
		0928ae8a70
		
	
	
	
	
		
			
			Preventing directory browsing via PrettyURLS plugin when .htaccess is deleted by the user. ...as an addition to #No. 174
		
			
				
	
	
		
			21 lines
		
	
	
		
			553 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			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 
 | |
| 
 |