leejefon/Simple-PHP-Path-Redirector/master/.htaccess - Htaccess File

leejefon/Simple-PHP-Path-Redirector/master/.htaccess

RewriteEngine On

# Use custom router for redirect
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php [L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache