/faq/page.html
/faq/page2.html
/faq/whatever55.html
I would like to make it dynamic. This is what I have so far, but it's not working:
- Code: Select all
RewriteEngine Off
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /path/to/faq/
RewriteCond %{REQUEST_URI} !^faq.php$
RewriteRule ^[-a-zA-z0-9.]+$ faq.php?p=$1 [NC,L]
</IfModule>
The idea is what I can eventually get something like faq.php?p=page.html. But it's not working. In fact, when I echo out the contents of the "p" variable on faq.php, it's got faq.php in it, almost like a loop. Can anyone give me a hand?
Thanks in advance