• What is the best way to unpublish the entire site? delete a single important file such as config php file? or remove all files? delete database? mistype database password on purpose? I guess all work right? But are they all the same? I may bring it back after a while, so I want to do it with the least effort and most effective method. are these all the same as far as being removed from search results?
    And how long does it take for the search engines to remove the site content from their results?

    • This topic was modified 3 years, 11 months ago by ketanco.
    • This topic was modified 3 years, 11 months ago by ketanco.
Viewing 3 replies - 1 through 3 (of 3 total)
  • If you are going to keep everything you might want to use something like a coming soon plugin. You would only be able to see the site if you are logged in. If you want to keep your files and keep anyone from finding your site you could point the DNS to something else and change it back when you are ready to bring the site back online.

    Thread Starter ketanco

    (@ketanco)

    Thanks. What do you mean by pointing DNS to somewhere else and where? You mean the website domain name will not work?

    Moderator Yui

    (@fierevere)

    永子

    You can unpublish your site by using those rules in .htaccess:

    (replace everything in .htaccess file with this)

    RewriteEngine on
    
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{HTTP_HOST} ^(www\.)?sub\.domain\.com$ [NC]
    RewriteRule ^ - [L,R=410]

    make sure to replace regex for www.sub.domain.com with your real domain url
    This will return 410 – Gone status for everything on specified site.

    Note: status 410 will delist your site from search engines much faster than 404.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Best way to unnpublish’ is closed to new replies.