• Hello everybody. I need to split a website in two and I thought about duplicating and then separating the contents of each one. but i think this will harm seo. how to avoid future problems with this duplication? It is using ssl right now. Thanks in advance.

    • This topic was modified 3 years, 6 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
  • Ypur approach should work. Make a list of all the pages/posts that used to be on site A (original site), but are now on site B (new site). Then create 301 redirects in the .htaccess file in the root of site A (i.e. the same level where /wp-content/ and /wp-admin/ can be found), to make sure that search engines are clear where the old pages/posts now can be found, and where to apply the trust and SEO ranking of the old pages/posts:

    
    ## 301 Redirects
    Redirect 301 /oldpage/ https://www.siteB.com/newpage/
    Redirect 301 /oldpost/ https://www.siteB.com/newpost/
    

    https://moz.com/learn/seo/redirection

    Thread Starter digiart1975

    (@digiart1975)

    @pidengmor thanks for the reply. Ill try to do that.

    Thread Starter digiart1975

    (@digiart1975)

    @pidengmor could give more details on how to create the htaccess file for redirect? I dont have experience with this type of file

    Hi,

    If your site runs on an Apache or Litespeed server, then there should be an .htaccess file in the root of the site (i.e. the same level as the /wp-content/ and /wp-admin/ directories). This is a configuration file, and at the most basic level it contains the WordPress rewrite rules for the permalinks (urls).

    ** Note that this file is very sensitive, and if you make any errors in the syntax you can break the site. **

    You can either:
    1) use the file manager provider by your host (e.g. cPanel) to locate the file (note that you may have to check “show hidden files” as files that begin with . are often hidden)
    2) use a plugin like https://www.ads-software.com/plugins/wp-htaccess-editor/ to edit the file from the WordPress dashboard

    If you use option (1) then take a backup of the .htaccess file before making any changes, and make sure that your new lines of code come on a new line that is NOT inside the BEGIN WORDPRESS >>> END WORDPRESS block of rules.

    If you use option (2) the plugin can check the syntax to see if it will break the site or not by using the “test before saving” button.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to securely duplicate WordPress website’ is closed to new replies.