I have a WordPress site with a custom page comparison that gets a string.
Now it takes:
mysite.com/phones/compare/?between=samsung-galaxy-note-3-vs-nokia-lumia-730
It needs to be like that:
mysite.com/phones/compare/samsung-galaxy-note-3-vs-nokia-lumia-730
I've tried adding code on my site's .htaccess that didn't worked for me and went to WordPress 404 page:
RewriteRule ^phones/compare/(.+?)/?$ phones/compare/?between=$1 [NC,L]
Also I need to redirect to the new search engine friendly URL too when user gets to mysite.com/phones/compare/?between= URL.