PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Ahmed Khan   Custom PHP CMS   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Custom PHP CMS
Manage the content of a site that can be searched
Author: By
Last change:
Date: 2 years ago
Size: 625 bytes
 

Contents

Class file image Download
<Files ~ "^\.(htaccess|htpasswd)$"> deny from all </Files> Options -Indexes DirectoryIndex index.php order deny,allow #rewriting urls for id to make seo friendly url RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^(([A-Za-z0-9]+[-]+[A-Za-z0-9]+)+[/])$ articleview.php?aid=$1 [NC,L] # Handle product requests RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html