WordPress.org

Ready to get started?Download WordPress

Forums

Block a URL using Robots.txt (4 posts)

  1. Vivek Nath.R
    Member
    Posted 1 year ago #

    Recently I moved to new host and I got a temporary URL for testing purpose. I did a search with my site name, google is showing both the temp url and original url. I want to remove the temp url completely. How I remove that url completely from google? Whats the exact code should I add in Robots.txt?

    Regards,
    Vivek.

  2. esmi
    Forum Moderator
    Posted 1 year ago #

  3. Vivek Nath.R
    Member
    Posted 1 year ago #

    Its better if any give the exact code to add in robot.txt file
    This is the url I want to block http://digitaladvices.com.cp-21.webhostbox.net/

  4. Vivek Nath.R
    Member
    Posted 1 year ago #

    Will the below code is correct?
    user-agent: *
    disallow: http://digitaladvices.com.cp-21.webhostbox.net/

Topic Closed

This topic has been closed to new replies.

About this Topic