.htaccess ReWriteRule - Quick Question
I've created a ReWriteRule, which I think points to claim.php?claimlisting=$#
The rule is written as follows :
# Claim
RewriteRule ^listing/claim/([a-zA-Z0-9-]+).(.html|htm)$ claim.php?claimlisting=$1 [L]
An example link is : /listing/claim/anne-morrison--hypnotherapy-cognitive-behaviour-therapists
I would like my MOD_REWRITE to point to the ROOT dir and claim.php?claimlisting=$ID_HERE
I've put the file up, But it doesnt seem to be affecting the site at all? Is what I've done correct and what else开发者_C百科 would be a factor preventing it from functioning correctly?
Thanks
# Claim RewriteEngine On RewriteRule ^listing/claim/([a-zA-Z0-9\-]+).(html|htm)$ /claim.php?claimlisting=$1 [L]
And you are missing .html at the end of link
You have an extra period.
RewriteRule ^listing/claim/([a-zA-Z0-9-]+)\.(html|htm)$ claim.php?claimlisting=$1 [L]
I removed the one in the second set of parenthesis, and escaped the first one. Try that.
精彩评论