I have a RewriteRule that is not behaving as I expect. I want site.com/author/fred
to map to site.com/author/index.php?a=fred
I have an author directory within the site root. The author directory contains the .htaccess file below.
My problem is that $1
contains the value index.php
instead of the regex match.
The entire .htaccess file is below. Can you see my mistake? Thank you.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ([^/]+)/?$ index.php?a=$1 [NC,L]