code_junkie

public directory for .htaccess

Nov 13th, 2011
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. RewriteCond %{DOCUMENT_ROOT}public%{REQUEST_URI} -f
  2. RewriteRule !^public/ public%{REQUEST_URI} [L]
  3.  
  4. RewriteCond %{DOCUMENT_ROOT}public%{REQUEST_URI} -f
  5. RewriteRule !^public/ public%{REQUEST_URI} [L]
  6.  
  7. RewriteCond %{DOCUMENT_ROOT}public%{REQUEST_URI} -f
  8. RewriteRule !^public/ public%{REQUEST_URI} [L]
  9.  
  10. RewriteCond %{REQUEST_URI} ^/subdir(/.*)
  11. RewriteCond %{DOCUMENT_ROOT}subdir/public%1 -f
  12. RewriteRule !^public/ public%1 [L]
  13.  
  14. RewriteRule ^public/ - [L]
  15. RewriteCond public/$0 -F
  16. RewriteRule .* public/$0 [L]
Add Comment
Please, Sign In to add comment