akobashikawa/unophp/master/.htaccess
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .? - [S=1] # IF the file exists RewriteRule ^(.*)$ $1 [END] # ELSE RewriteCond %{REQUEST_URI} ^.*.html.*$ RewriteRule ^(.*.html)/?(.*)$ index.php?p=html/$1&q=$2 [END] RewriteRule ^(.*)$ html/$1 [END] # END
Files
![REQUEST_FILENAME, REQUEST_URI](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/akobashikawa/unophp-htaccess.png)