PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Mohammed Al Ashaal   Horus Framework   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Horus Framework
Develop Web applications using a micro framework
Author: By
Last change: Update .htaccess
Date: 9 years ago
Size: 766 bytes


Class file image Download
ServerSignature Off <IfModule mod_rewrite.c> RewriteEngine On # On some web hosts this code may not work because of the 'RewriteBase' # so you should use `RewriteBase` # And set it to the real absolute path of horus installation directory # example: # RewriteBase /path/to/current_directory # the next line tells apache to handle the requested file if exists # or it will pass it to horus url_rewrite RewriteCond %{REQUEST_FILENAME} !-f # the next line just like the above, but it check for folders not files RewriteCond %{REQUEST_FILENAME} !-d # rewrite /xxx to index.php/xxx RewriteRule ^(.*)$ index.php/$1 [QSA,L] # tell horus don't use index.php/ in urls setEnv SIMULATOR off </IfModule>