301 a single page instead of the whole directory?
This is what I am using:
RedirectMatch 301 ^/old-page /new-page
- http://www.domain.com/old-page redirects to http://www.domain.com/new-page (this is ok)
- http://www.domain.com/old-page/page-1 redirects to http://www.domain.com/new-page/ (this is bad)
This is what I want:
- http://www.domain.com/old-page/page-1 gives 404
This is because a lot of pages inside "old-page" directory doesn't exist anymore and I don't want every old page being redirected to the new parent directory to avoid an SEO issue.
Robin