Login   Register  
PHP Classes
elePHPant
Icontem

File: .htaccess

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Gregory  >  Smart URI  >  .htaccess  >  Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: .htaccess example
Class: Smart URI
Wrap all site requests around a single PHP script
Author: By
Last change:
Date: 9 years ago
Size: 301 bytes
 

Contents

Class file image Download
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteCond %{REQUEST_FILENAME} -d
	RewriteRule ^(.*/[^\./]*[^/])$ /$1/
	RewriteRule ^([a-zA-Z0-9\/_-]*)$ /index.php [QSA,L]
</IfModule>

<IfModule mod_php4.c>
	php_value register_globals        0
	php_value track_vars              0
</IfModule>