may you please tell me where is my fault ?
RewriteRule ^project/([^.]+)/$ /wordpress/wp-content/plugins/pr/cp.php?id=$1 [QSA,L]
i get Internal Server Error everytime i apply it
Thank you
EDIT
127.0.0.1/wordpress/project/43928fdsf
redirects to
127.0.0.1/wordpress/wp-content/plugins/pr/cp.php?id=43928fdsf
Your expression is fine which would suggest
mod_rewriteis not installed/working/turned on. Change your code to look like this:That should stop there being any 500 errors (if they were indeed
mod_rewriterelated). If your URL rewrites still don’t work then you don’t havemod_rewriteinstalled/enabled, in which case you can install and enable it.UPDATE
You have a forward slash at the end o your RewriteRule but you want to match a URL like 127.0.0.1/wordpress/project/43928fdsf, which has no forward slash at the end. Just remove the forward slash and the rule should match:
From then on if you’re still getting a 500 error then try printing the
$_GETvariables at the top of your PHP file, then callexit()and see if you still have the problem. This should help to narrow down whether the problem is with PHP or Apache.