I already started a topic some weeks ago. But I got now a new problem that is very similar to the old problem: .htaccess rewrite URL with a question mark "?"
My aim was this URL:
/mysite/component/users/?view=registration
Rewrite into this new URL:
mysite/registration.html
My current .htaccess
got this code:
RewriteBase /mysite
RewriteCond %{QUERY_STRING} ^view=(.*)$
RewriteRule ^component/users/?$ %1.html? [R=301,L]
It worked very fine.
But then I noticed that this config concerns all URL that starts like this:
/mysite/component/users/?view=
For example this config would also concern an URL like this:
/mysite/component/users/?view=remind
This is what I don't want
I only want this URL rewritten:
localhost/mysite/component/users/?view=registration