railto/SimpleBlog/master/.htaccess - Htaccess File

railto/SimpleBlog/master/.htaccess

RewriteEngine On

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}s([^.]+).php [NC]
RewriteRule ^ %1 [R,L]

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

RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteRule ^(.*)$ post.php?id=$1 [QSA,L]

On Github License

Files

Download PDF of Htaccess file
REQUEST_FILENAME, THE_REQUEST

Comments

Apache