2
votes
Accepted
Rewrite URL with one unnecessary parameter
You need to make the "amps" in the URL optional by adding a ? to the regex in the correct spot. Also because regex are greedy, you shouldn't accept slashes in the middle of your URL. Use [^...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
apache × 1128htaccess × 339
mod-rewrite × 197
redirects × 125
php × 116
apache2 × 82
url-rewriting × 81
virtualhost × 76
https × 75
301-redirect × 60
linux × 48
httpd.conf × 48
wordpress × 45
server × 44
url × 37
security × 36
dns × 35
web-hosting × 33
subdomain × 33
seo × 28
cpanel × 28
webserver × 26
apache-log-files × 26
localhost × 25
domains × 24