PHP Classes

File: example/.htaccess

Recommend this page to a friend!
  Classes of devg   Router Lite   example/.htaccess   Download  
File: example/.htaccess
Role: Auxiliary data
Content type: text/plain
Description: Apache host config
Class: Router Lite
Route HTTP requests by URL pattern to callbacks
Author: By
Last change:
Date: 6 years ago
Size: 303 bytes
 

Contents

Class file image Download
AddDefaultCharset utf-8 Options -Indexes RewriteEngine On # Redirect from www #RewriteCond %{HTTP_HOST} ^www\.(.*) [NC] #RewriteRule ^(.*)$ http://%1/$1 [R=301,L] # All requests to index.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php [QSA,L]