Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.73 KB | None | 0 0
  1. RewriteOptions inherit
  2. RewriteEngine On
  3.  
  4.  
  5. <IfModule mod_rewrite.c>
  6. RewriteEngine on
  7. #Options -Indexes
  8.  
  9. #
  10. # Uncomment the statement below if you want to make use of
  11. # HTTP authentication and it does not already work.
  12. # This could be required if you are for example using PHP via Apache CGI.
  13. #
  14. #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
  15.  
  16. #
  17. # The following 3 lines will rewrite URLs passed through the front controller
  18. # to not require app.php in the actual URL. In other words, a controller is
  19. # by default accessed at /app.php/my/controller, but can also be accessed at
  20. # /my/controller
  21. #
  22. RewriteCond %{REQUEST_FILENAME} !-f
  23. RewriteCond %{REQUEST_FILENAME} !-d
  24. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  25. RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  26. RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
  27. RewriteRule ^(.*)$ app.php [QSA,L]
  28.  
  29. #
  30. # If symbolic links are not already being followed,
  31. # uncomment the line below.
  32. # http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
  33. #
  34. #Options +FollowSymLinks
  35. </IfModule>
  36.  
  37. # With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
  38. # module mod_authz_host to a new module called mod_access_compat (which may be
  39. # disabled) and a new "Require" syntax has been introduced to mod_authz_host.
  40. # We could just conditionally provide both versions, but unfortunately Apache
  41. # does not explicitly tell us its version if the module mod_version is not
  42. # available. In this case, we check for the availability of module
  43. # mod_authz_core (which should be on 2.4 or higher only) as a best guess.
  44.  
  45. <Files "config.php">
  46. Order Allow,Deny
  47. Deny from All
  48. </Files>
  49. <Files "common.php">
  50. Order Allow,Deny
  51. Deny from All
  52. </Files>
  53.  
  54. <Files 403.shtml>
  55. order allow,deny
  56. allow from all
  57. </Files>
  58.  
  59. #RewriteCond %{HTTPS} off
  60. #RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  61. #RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
  62. #RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  63. #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  64.  
  65. #RewriteCond %{SERVER_PORT} !443
  66.  
  67. #RewriteRule (.*) https://www.amxx-bg.info/$1 [R=301,L]*
  68.  
  69.  
  70. RewriteEngine On
  71. RewriteCond %{HTTPS} off
  72. RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
  73.  
  74. #phtp_value date.timezone "Europe/Sofia"
  75.  
  76. # php -- BEGIN cPanel-generated handler, do not edit
  77. # NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
  78. # Do not edit. This next line is to support the cPanel php wrapper (php_cli).
  79. # AddType application/x-httpd-ea-php56 .php .phtml
  80. # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement