Here's what I have:
- Code: Select all
RewriteRule ^etc/([0-9A-Za-z_]+)/$ /index.php?id=$1 [L]
I think I should have to place a [^/] somewhere; but, I don't know where. What do I change, within the rule, to match it without a trailing slash?
RewriteRule ^etc/([0-9A-Za-z_]+)/$ /index.php?id=$1 [L]
RewriteRule ^etc/([0-9A-Za-z_]+)/?$ /index.php?id=$1 [L]
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 26 guests