I've got a wordpress installation in the subdirectory known as "wordpresss"

Within that directory i've got a .htaccess file

I'm attempting to rewrite personal files within the cause of the wordpress directory such as this

http://mysite.com/wordpress/facebook.php?i=135

into

http://mysite.com/wordpress/facebook/135.html

This is exactly what i've to date and that i cant appear to sort out what's wrong...

RewriteEngine on
RewriteBase /wordpress/
RewriteRule ^facebook/([0-9]+)\.html$ facebook.php?i=$2

Thank you for any help!!

The variables prepended with a dollar register a RewriteRule uses info in the parts between brackets. Because you have only among individuals ( ([0-9]+) ) you simply have one variable to utilize. Alter the $2 to $1 and find out in the event that works.