CraftSRV .htacess Print

  • 0

Options -Indexes

RewriteEngine on

SetEnv HTACCESSENABLED on

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} step(.*)\.php
RewriteRule ^(.*)$ $1 [L]

RewriteCond %{THE_REQUEST} \.php
RewriteCond %{REQUEST_URI} !^/?(phpmyadmin)/
RewriteRule ^(.*)$ $1 [R=404,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !\.php
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php [L]

Was this answer helpful?

« Back