martinytodorov/keepitsimple/master/.htaccess
DirectoryIndex index.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/.]+)/?$ index.php?page=$1 [L] RewriteRule ^([^/.]+)/([^/.]+)?$ index.php?page=$1&anchor=$2 [L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s(.*)/index.php [NC] RewriteRule ^ %1 [R=301,L]
Files
![REQUEST_FILENAME, THE_REQUEST](https://www.askapache.com/s/u.askapache.com/htaccess-file/2016/github/martinytodorov/keepitsimple-htaccess.png)