PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Adrian M   upMVC   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: upMVC
Pure PHP web development without other frameworks
Author: By
Last change:
Date: 5 months ago
Size: 555 bytes
 

Contents

Class file image Download
Options -Indexes RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f #RewriteRule ^ - [R=404,L] #RewriteRule ^ - [R=403,L] #ErrorDocument 404 #ErrorDocument 403 #level One RewriteRule ^test-([\w\d~%.:_\-]+)$ test?param=$1 [NC] RewriteRule ^test-([\w\d~%.:_\-]+)/([\w\d~%.:_\-]+)$ test?param=$1&another=$2 [NC] #level Two RewriteRule ^moda-page-([\w\d~%.:_\-]+)$ moda-page?param=$1 [NC] RewriteRule ^moda-page-([\w\d~%.:_\-]+)/([\w\d~%.:_\-]+)$ test?param=$1&another=$2 [NC] RewriteRule (.+) index.php [QSA,L]