Support » Fixing WordPress » Redirect old blog in sub folder to new install in main domain

  • I need to redirect an old blog’s posts to the main domain. The main domain now has all the blog subfolder’s posts imported to the same urls in the main domain.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^samesite\.com\/blog\/$
    RewriteRule ^(.*)$ "http\:\/\/samesite\.com\/$1" [R=301,L]

    Not great at rewrite rules so is the above the right approach?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Redirect old blog in sub folder to new install in main domain’ is closed to new replies.