I'm using .htaccess to take URLs that look like:
/index.php?page=2
and rewrite them to, for example:
/contact-us
I want to do two things:
When loading /contact-us, show page /index.php?page=2 but keep the friendly URL. I know this looks something like:
RewriteRule ^contact-us$ "index\.php\?page\=2" [L]
Which does work ok. But now I also want people who navigate to /index.php?page=2 to end up on /contact-us - how do I achieve this as a 301 redirect in combination with the friendly URL rewrite?