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 arab sheybani  >  error-access  >  htaccess  >  Download  
File: htaccess
Role: Auxiliary data
Content type: text/plain
Description: apache file for mode rewrite
Class: error-access
Process request URLs for error pages
Author: By
Last change: modify description
Date: 6 years ago
Size: 358 bytes
 

Contents

Class file image Download
DefaultLanguage fa
AddDefaultCharset UTF-8
# in /home/user/yourdomain/.htaccess

#method 1
#RewriteEngine on
#RewriteCond %{SCRIPT_NAME} !-f
#RewriteRule (.+) index.php?request=$1 [PT]


#method 2
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule (.+) index.php