Jump to content

how to prevent google indexing


Dario

Recommended Posts

Hello

I use whmcs for administrative purposes, like a second website with a subdomain. The main domain is a basic html website.

All I need is to prevent google from indexing whmcs, or certain url's such as:  clientarea.php, cart.php, cart.php?a=add&pid=1, cart.php?a=view and other url's

I have read that adding if else in the head.tpl is enough, but I do not get positive results.

Can anybody help me?

Link to comment
Share on other sites

  • 2 months later...

Hello, you can start by editing the file modelos/{your-template}/header.tpl. and add the tag <meta name="robots" content="noindex,nofollow"/>

This helps index only public pages on whmcs - I personally do not recommend

{if $filename=='clientarea' or $filename=='login' or $filename=='register'}
<meta name="robots" content="noindex,nofollow" />
{else}
<meta name="robots" content="index,follow" />
{/if}

 

Greetings

Luiz Araújo

Link to comment
Share on other sites

  • 2 years later...

Hello, 

I'm using WHMCS on /billing/ folder under the main domain.... Now few days ago I have added the WHMCS Bridge and I'm using on the main site as button: Client Area which gets the results from the WHMCS installation in /billing/ ... Now my question is: Should i noindex, nofollow the files from the WHMCS nor /billing/ folder? Cause i get more results in Google from the WHMCS installation then from the main website. Hope someone can clarify me :) 

Best Regards,

Mihai Dobre

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated