The company I work for recently took over a site that is built in WordPress, apparently Google has indexed several pages with a trailing / that coupled with the fact that the previous company programmer made the site require some information from the URL.
So, Google has indexed domain.com/featured-something/something/ and I need to redirect these pages to domain.com/featured-something/something/?something=something&somethingelse=something else
I tried this code for a redirect, but only works without the trailing slash:
RewriteRule ^featured-something/something?$ http://domain.com/featured-something/something/?start=0&pt=&bed=&bat=&subdiv=Aqua&sub=&pr=&display=quick [R=301,L]
I had added some code before all of the rules to redirect to a non slashed version first, then these, but that created an infinite redirect loop.
Can someone please help me out?
Thanks
Karl
p.s. The GET string is unique to each different URL, unfortunately, so will have to create rules for each url.