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:
http://hydesim.com?dll=40.71427,-74.00597&yd=10&zm=12&op=156
…becomes this:
http://meyerweb.com/eric/tools/gmap/hydesim.html/?dll=40.71427,-74.00597&yd=10&zm=12&op=156
…instead of this:
http://meyerweb.com/eric/tools/gmap/hydesim.html?dll=40.71427,-74.00597&yd=10&zm=12&op=156
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!