Bodya91/yii-rest/master/.htaccess
RewriteEngine on # Enable if SSL is configured # Redirect all requests to the SSL version # RewriteCond %{SERVER_PORT} !^443$ # RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] # if a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # otherwise forward it to index.php RewriteRule . index.php
Files
![REQUEST_FILENAME, REQUEST_URI, SERVER_NAME, SERVER_PORT](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/Bodya91/yii-rest-htaccess-382x250.png)