PHP Classes

File: examples/fullexample/.htaccess

Recommend this page to a friend!
  Classes of Jorge Castro   PHP Route One   examples/fullexample/.htaccess   Download  
File: examples/fullexample/.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: 4 years ago
Size: 341 bytes
 

Contents

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|router.php)($|/) - [L] RewriteRule ^(.*)$ router.php?req=$1 [L,QSA] </IfModule>