Using mod_rewrite on mac os x 10.3 panther from .htaccess

It is quite simple. MacOS X 10.3 comes with mod_rewrite built in and turned on for the default apache. You just have to ensure that the Options and rewrite engine are setup correctly. Here is a simple .htaccess file that I am using to answer requests for domain.com/articles/XXX with the PHP script that would normally be found at domain.com/article.php?id=XXX. This .htaccess file is located in the /articles folder.
# either SymLinksIfOwnerMatch or FollowSymLinks must be on
Options +SymLinksIfOwnerMatch

RewriteEngine On
RewriteBase /
RewriteRule ^(.*)$ article.php?id=$1


Posted by dustin on April 19, 2004 with category tags of

   

VorgTag Cloud

Written by dustin
Latest Photo
Quote of Now:
Friends
Popular Posts
Computer Games

Hey You! Subscribe to dustin's RSS feed.
Or get wider opinion in the Vorg All Author feed.

 
 

Members login here.
© Vorg Group.