Select Page

301 Redirects

< All Topics
Table of Contents

Redirect one page to another:

Redirect 301 /old/ /new/

Redirect all pages under a sub directory

RedirectMatch 301 ^/old/.*$ /new/

Example: https://www.domain.com/subdirectory/page

Using the above RedirectMatch rule, anyone visiting https://www.domain.com/subdirectory and any page under it, will be redirected to the /new/ URL.