I have some domain redirects that point to a page on my server, and they stick a trailing slash after the filename but before the query string. So this:
…instead of this:
So how do I drop that middle-of-URL slash while preserving the query string? I’ve tried some
.htaccess approaches but nothing seems to work. The most recent attempt was:
RewriteRule ^(.+)html/(.+)$ /$1html$2 [R=301,L]
[UPDATE: That rule didn’t work, so I disabled it, and now there are no rewrites in effect.] I’m not very experienced with
mod_rewrite, as you might have guessed. Any help greatly appreciated!