I am using the following code...
#Fix Rewrite
Options -Multiviews
# Mod Rewrite
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)?$ index.php?q=$1 [L]
to turn www.website.com/index.php?q=Keyword
into www.website.com/Keyword
Which works great....however....
I also (in the same directory) have a file called spec.php
which accepts a GET
variable of eid
.
I need to also have a rule that turns www.website.com/spec.php?eid=00000
into www.website.com/00000
or www.website.com/spec/00000
without actually moving spec.php
into a subdirectory.
Any help would be GREATLY appreciated, my eyes have google burn. I found some that did something similar but when I tried to match it to my situation I got problems.