Guest User

Untitled

a guest
Oct 23rd, 2017
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^index.php$ - [L]
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule . /index.php [L]
  9. </IfModule>
  10.  
  11. # END WordPress
  12.  
  13. # protect wpconfig.php
  14. <files wp-config.php>
  15. order allow,deny
  16. deny from all
  17. </files>
  18.  
  19. # protect the htaccess file
  20. <files .htaccess>
  21. order allow,deny
  22. deny from all
  23. </files>
  24.  
  25. # disable the server signature
  26. ServerSignature Off
  27.  
  28. <IfModule mod_rewrite.c>
  29. RewriteEngine On
  30. RewriteBase /my-laravel-app/
  31. RewriteCond %{REQUEST_FILENAME} !-f
  32. RewriteCond %{REQUEST_FILENAME} !-d
  33. RewriteRule . /my-laravel-app/public/index.php [L]
  34. </IfModule>
  35.  
  36. <IfModule mod_rewrite.c>
  37. <IfModule mod_negotiation.c>
  38. Options -MultiViews
  39. </IfModule>
  40.  
  41. RewriteEngine On
  42.  
  43. # Redirect Trailing Slashes If Not A Folder...
  44. RewriteCond %{REQUEST_FILENAME} !-d
  45. RewriteRule ^(.*)/$ /$1 [L,R=301]
  46.  
  47. # Handle Front Controller...
  48. RewriteCond %{REQUEST_FILENAME} !-d
  49. RewriteCond %{REQUEST_FILENAME} !-f
  50. RewriteRule ^ index.php [L]
  51.  
  52. # Handle Authorization Header
  53. RewriteCond %{HTTP:Authorization} .
  54. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  55. </IfModule>
Add Comment
Please, Sign In to add comment