Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteOptions inherit
- RewriteEngine On
- <IfModule mod_rewrite.c>
- RewriteEngine on
- #Options -Indexes
- #
- # Uncomment the statement below if you want to make use of
- # HTTP authentication and it does not already work.
- # This could be required if you are for example using PHP via Apache CGI.
- #
- #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
- #
- # The following 3 lines will rewrite URLs passed through the front controller
- # to not require app.php in the actual URL. In other words, a controller is
- # by default accessed at /app.php/my/controller, but can also be accessed at
- # /my/controller
- #
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
- RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
- RewriteRule ^(.*)$ app.php [QSA,L]
- #
- # If symbolic links are not already being followed,
- # uncomment the line below.
- # http://anothersysadmin.wordpress.com/2008/06/10/mod_rewrite-forbidden-403-with-apache-228/
- #
- #Options +FollowSymLinks
- </IfModule>
- # With Apache 2.4 the "Order, Deny" syntax has been deprecated and moved from
- # module mod_authz_host to a new module called mod_access_compat (which may be
- # disabled) and a new "Require" syntax has been introduced to mod_authz_host.
- # We could just conditionally provide both versions, but unfortunately Apache
- # does not explicitly tell us its version if the module mod_version is not
- # available. In this case, we check for the availability of module
- # mod_authz_core (which should be on 2.4 or higher only) as a best guess.
- <Files "config.php">
- Order Allow,Deny
- Deny from All
- </Files>
- <Files "common.php">
- Order Allow,Deny
- Deny from All
- </Files>
- <Files 403.shtml>
- order allow,deny
- allow from all
- </Files>
- #RewriteCond %{HTTPS} off
- #RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
- #RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/.+$
- #RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
- #RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- #RewriteCond %{SERVER_PORT} !443
- #RewriteRule (.*) https://www.amxx-bg.info/$1 [R=301,L]*
- RewriteEngine On
- RewriteCond %{HTTPS} off
- RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
- #phtp_value date.timezone "Europe/Sofia"
- # php -- BEGIN cPanel-generated handler, do not edit
- # NOTE this account's php is controlled via FPM and the vhost, this is a place holder.
- # Do not edit. This next line is to support the cPanel php wrapper (php_cli).
- # AddType application/x-httpd-ea-php56 .php .phtml
- # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement