xiangyuan/api/master/.htaccess - Htaccess File

xiangyuan/api/master/.htaccess

Options +FollowSymLinks
RewriteEngine On
#example 1 failed
#ServerSignature Off
#RewriteCond %{REQUEST_METHOD} ^(HEAD|DELETE|TRACE|TRACK) [NC,OR]
#RewriteCond %{THE_REQUEST} (\r|\n|%0A|%0D) [NC,OR]
### example 2 failed
#RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK|OPTIONS|HEAD)
#RewriteRule .* - [F]

#### This is success ####
<LimitExcept GET POST PUT DELETE>
  Order Allow,Deny
  Deny from all
</LimitExcept>
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} .*.(?!jpeg|jpg|gif|png)$
#RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1 !^(static)
RewriteRule ^(.*)$ index.php [NC,L]

On Github License

Files

Download PDF of Htaccess file
GET, POST, PUT, REQUEST_FILENAME, REQUEST_METHOD, static, THE_REQUEST

Comments

Apache