beginning mod-rewrite

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
User avatar
voltrader
Forum Contributor
Posts: 223
Joined: Wed Jul 07, 2004 12:44 pm
Location: SF Bay Area

beginning mod-rewrite

Post by voltrader »

I'm trying to start learning mod-rewrite with a static example.

I'd like to rewrite http://www.example.com/foo/home.php to http://www.example.com/foo/

This is what I have, but it doesn't seem to work. Anyone have any pointers?

Code: Select all

ReWriteEngine On
RewriteBase    /foo/
RewriteRule ^home.php // їR=301]
Post Reply