I am trying to set up a very simple redirect which for some reason I just cannot get working. After a complete overhaul of the website, the new About page has the url /about-us/ whereas the old site was /aboutus/ . As google is still indexing the old url I wanted to set up a redirect from /aboutus/ to /about-us/ but nothing is working. I will need to set up a few of these rules pointing the old indexed pages to pages on the new website.
I have tried the following redirect rules:
RewriteRule ^/aboutus /about-us [R=301,NC,L]
Redirect 301 /aboutus /about-us
But both of these cause the site to redirect to the following url "www.domain.com/about-us/?url=/aboutus/" which brings up a "Page not found" error.
Seems like it is working fine aside from the "?url=" part of the url which is causing the problems. Anyone encountered this before?
Many thanks,
Adam.