Need to re-direct /blog subdirectory to root for all subD links
-
I need to redirect all links from my site.com/blog to the root, site.com for any links that are indexed on Google.
I placed the following in my HTAccess file:
RedirectMatch 301 ^/blog/$ https://site.com/and it redirects the home page/index.php page only. I have quite a few posts/links that show on Google that I would like re-directed to the root domain when clicked.
would I need to redirect each link in HTAccess or is there another HTAccess rewrite method I could use?
All help is appreciated.
- The topic ‘Need to re-direct /blog subdirectory to root for all subD links’ is closed to new replies.