PHP Classes

File: .htaccess

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple PHP Blog Script   .htaccess   Download  
File: .htaccess
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Blog Script
Manage blog articles stored in a MySQL database
Author: By
Last change:
Date: 2 years ago
Size: 856 bytes
 

Contents

Class file image Download
# Turn Rewrite Engine On RewriteEngine on # NC makes the rule non case sensitive # L makes this the last rule that this specific condition will match # $ in the regular expression makes the matching stop so that "customblah" will not work # Excluding others # Rewrite for index.php RewriteRule ^/$ index.php [NC,L] # Rewrite for category.php?id=xxxxx RewriteRule ^category/([0-9a-zA-Z]+)$ include/category.php?category=$1 [NC,L] # Rewrite for article.php?id=1&title=Title-Goes-Here RewriteRule ^article/([0-9]+)/([0-9a-zA-Z_-]+)/$ post.php?id=$1&title=$2 [NC,L] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /biggidroid/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /biggidroid/index.php [L] </IfModule> # END WordPress