• Home
  • |
  • Blog
  • |
  • How To Disallow Search Traffic On Your Restaurant Staging Website

August 5, 2020

How To Disallow Search Traffic On Your Restaurant Staging Website

If you have a WordPress website for your restaurant, you probably have to edit your website.

But you don’t want to risk breaking your website by making edits to your live website. If you are adding a plugins or making an edit and something breaks, your website will go down.

So, you want to make sure that you copy your current website to create a staging environment, then make your edits on the staging website. That way, your live website will still be available for people to find and use, while you can still test and make edits to your staging website. Once you know that your edits don’t break your site, you can apply your edits to your live website.

One thing you need to do with your staging site is to make sure that it won’t show in search engines.

You do not want your staging site to show on search engines because you will be making edits that you are not sure you want to be public.

Your staging site is also a duplicate of your live site. And you don’t want duplicate content hanging around Google.

So you want to make sure that your website cannot be indexed by search engines.

How can you do that with a WordPress website?

There are two ways you can do this:

cPanel method:

Log in to your cPanel. Once you are in your cPanel, go to your File Manager.

Once you are in your file manager, find your robots.txt file. By default, it should be in your public_html folder. Once you are in your robots.txt file, make sure the file has this in it:

User-agent: *

Disallow: /

The ‘Disallow: /’ will make sure that search engines are not allowed to index your site.

Plugin Method:

In your WordPress dashboard, click on plugins and add a plugin.

Search for File Manager. Install and activate it.

Once its activated, you will see it on the left side menu. Click on File Manager and find your robots.txt file. By default, it should be in your public_html folder. Once you are in your robots.txt file, make sure the file has this in it:

User-agent: *

Disallow: /

The ‘Disallow: /’ will make sure that search engines are not allowed to index your site.

That’s all you have to do to make sure your staging site doesn’t show up in search engines!

Related Posts

Facebook Messenger Bot Setup For Restaurants Using Manychat

Facebook Messenger Bot Setup For Restaurants Using Manychat

Link Facebook Ads with Manychat Facebook Messenger Flows

Link Facebook Ads with Manychat Facebook Messenger Flows

Restaurant SMS Reminder Sequence Using Manychat

Restaurant SMS Reminder Sequence Using Manychat

Restaurant Email Offer Reminders Using Manychat

Restaurant Email Offer Reminders Using Manychat

Wilson Muh


Wilson Muh

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}
>