Jump to content

Move site out of a nested folder and not lose SEO?


Recommended Posts

Hi

I suspect the solution might be a rewrite script to take folks who land in "forum" up 1 level.

I should mention I have NGINX but I do not know how to write the rewrite script if anyone has experience and wants to share that would be awesome.

Thank you 🙂

Link to comment
Share on other sites

  • 2 weeks later...
On 4/23/2019 at 4:43 PM, SJ77 said:

For 12 years my site has been in a nested directory.  www.mysite.com/forum

How can I move my site to the top level domain without losing 12 years of SEO?  (mysite.com)

@SJ77 Am I correct in understanding you will be moving IPS application to the root (eliminating the `forum` folder)? Or are you looking for only URLs to be rewritten?

In the case of moving the app from the folder, you would change your server block location root in nginx config and to make sure all your old URLs are permanently redirected to new, add something like this:

location ~* ^/forum/(.*) {
    return 301 /$1;
}

I should also note that I agree with opentype. 12 years of SEO is nothing to be experimenting with. In theory, 301s should not affect SEO, but your results may vary.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...