PHP Classes

File: examples/.htaccess

Recommend this page to a friend!
  Classes of Jorge Castro  >  PHP Route One  >  examples/.htaccess  >  Download  
File: examples/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Route One
Parse request URLs and route to a controller
Author: By
Last change:
Date: 2 years ago
Size: 330 bytes


Class file image Download
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !-f
RewriteCond %{REQUEST_URI} !-d
RewriteCond %{REQUEST_URI} !-L
# l = last
RewriteRule ^(example|test|css|vendors|vendor|js|img|upload)($|/) - [L]
RewriteRule ^(autorunGen.php|autoload.php)($|/) - [L]

RewriteRule ^(.*)$ router.php?req=$1 [L,QSA]

For more information send a message to info at phpclasses dot org.