How to add a redirect to a web page where you have limited user priveledges - html

The company I work for has replaced our previously very flexible website with a much more restrictive "website in a box" technology. I have my web pages hosted on Google Sites and would like to redirect people to those pages. When I attempt to do this via javascript it gets stripped from the page when its saved. I do not have access to the section to attempt the depreciated method of redirecting.
Is there another method available to automatically redirect a customer other than just posting a link in a restricted environment like this?

If you're limited to using HTML to do the redirect, you can use a meta redirect:
<meta http-equiv="refresh" content="0; url=http://example.com/">
Though note that its use is deprecated because it may be disorienting to the user. In addition to the <meta> tag, you can add <link rel="canonical" href="http://example.com/"> to let search engines know that the targeted page is the canonical one.
Edit: if Google Sites won't allow you to change the <head> HTML, the Javascript, or the PHP, then it's time to go searching for solutions within Google Sites itself. One solution that pops up pretty frequently in searches seems to be using a URL Redirect Gadget.
On the page you want to redirect from, click the Edit Page button, then Insert Menu, then More Gadgets. Once there, search for "redirect gadgets" and some widgets that should help will show up.
These instructions are based on advice given in the Google Products forums. I don't have a Google Site myself, so I can't verify that they work.

Related

<meta name="robots"> not working

I have a page at:
https://www.luckycheckout.com/goto/282/cs/1?ct=1
which contains the following line of code in the head section:
<meta name="robots" content="noindex, nofollow" />
I also have "Disallow: /goto" in my "robots.txt" file.
However, despite this, Google Search Console is complaining that the page is:
Indexed, though blocked by robots.txt
As far as I can tell everything is both valid and correct and should not be indexed, can anybody explain what google is complaining about?
Thanks
You need to remove the Disallow for this site on the robots.txt file:
When Googlebot next crawls that page and see the tag or header, Googlebot will drop that page entirely from Google Search results, regardless of whether other sites link to it.
Important: For the noindex directive to be effective, the page must not be blocked by a robots.txt file. If the page is blocked by a robots.txt file, the crawler will never see the noindex directive, and the page can still appear in search results, for example if other pages link to it.
source: https://support.google.com/webmasters/answer/93710
You can also remove a site you own from the Google index, using the Google Search Console. You can find more information on the Google Webmaster documentation.

Remove dynamically generated url from google search

I have a page in my website, It takes two parameters in query string.
I don't want to show this page on google search. I put meta tag as below:
<meta name="robots" content="noindex">
But It still shows results as Cached, I tried google webmaster to remove the url's. It removes requested url but not stopping index the url and I am getting the url with some other parameter value. I don't want to show this page on search completely.
I looked at remove pages from google dynamic url - robots.txt
But I am not getting my answer.
Thanks
It's known issue. After you made all the recommended steps, i.e. added 'noindex' meta tag, disallowed it in robots.txt and removed from search in Webmaster Tools it may take a couple of weeks until the page completely disappears from search results. It's Google.
So, an only way to prevent the page from visiting is catch the request on server and redirect.

How to keep the search engines away from some pages on my domain

I've build a admin control panel for my website. I don't want the control panel app to end up in a search engine, since there's really no need for it. I did some research and i've found that by using the following tag, i can probably achieve my goal
<meta name="robots" content="noindex,nofollow">
Is this true? Is there other methods more reliable? I'm asking because i'm scare i could mess things up if i'm using the wrong method, and i do want search engines to search my site, just not the control panel...
Thanks
This is true, but on top of doing that, for even more security, in your .htaccess file, you should set this:
Header set X-Robots-Tag "noindex, nofollow"
And in you should create a new file in the root of your domain, named robots.txt with this content:
User-agent: *
Disallow: /
And you can be sure that they won't index your content ;)
Google will honor the meta tag by completely dropping the page from their index (source) however other crawlers might just simply decide to ignore it.
In that particular sense meta tags are more reliable with Google because by simply using robots.txt any other external source that is explicitly linking to your admin page (for whatever reason) will make your page appear in Google index (though without any content which will probably result in some SERP leeching).

how to redirect a html page to another website which is hosted in google drive urlshorten by gdriv.es

I am new to this.
Can any one tell me why my HTML page which is hosted in Google Drive, cannot redirect to a particular webpage while URL is shortened in GDRIV .
my html file content was
<html>
<body>
<p>you will be redirected soon.</p>
<meta http-equiv="refresh" content="0; url=http://examplesite.com">
</body>
</html>
I shared the Folder to the public and it was working fine, but the URL was bitty flabby like
https#://googledrive.com/host/0BXXXXXXXXXXXXXMGM/site.html
So I shortened the URL with the help of GDRIV
and i got a decent short URL something like
http#://gdriv.es/XXXX/site.html
But the redirecting function is no more working while using the shorten URL and work fine with that clumsy URL
Can any one tell me why this happen and well I think it is irrelevant to ask you tat ' Can i use PHP coding in Google drive hosted sites? '
It works. I did same thing in above example you provided and it did redirect my gdriv.es shortened address to redirected website.
Of course I assume you are aware of typo you made by adding # in your URL.
If it still doesn't work for you there is a "Send Feedback" link at the bottom of gdrive.es main page.
Fill that form and I'm sure they'll check that problem.
For your second question: No, you can not use PHP or any other server side scripting language on Google Drive Hosted Web Sites.
However you can use Google Apps Script which works under Google Drive and it uses Javascript language. You can do many things with GAS, one of them provides you a facility similar to PHP: HTML Service.
One caveat though: It has a javascript sanitization mechanism called CAJA. Meaning you can't just run any javascript code you like. Check last link for restrictions.

If I put a rel="nofollow" will the referrer site will appear on Google Analytics of example.com?

If I put a rel="nofollow" will the referrer site will appear on Google Analytics of example.com?
Example:
Referrer site is: referrer.com
nofollow is intended to prevent the bot from going TO the site in the link (or any link if it's in a meta tag).
ie: Site-A has a link:
<a rel="nofollow" href="//site-b.com">Site-B</a>
That nofollow is meant to tell Google that it shouldn't consider the two sites to be linked together.
Or two pages, or whatever.
<meta name="robots" content="noindex">
Tells Google that it shouldn't index THIS page in its search.
In your case, you're looking for a way to remove the JavaScript:document.referrer from Site-B. You can't do that from Site-A. When a user clicks from Site-A to Site-B, once they're on Site-B (where GA is installed), there's nothing that you can do from Site-A to prevent it.
There's no way to do that, without sending a user to your own server, and manually redirecting to/from elsewhere, using apache, or using some other server-side solution... Even then, the referral will come from somewhere -- it's just a case of where that somewhere, is.
HOWEVER if you're talking about two sites that YOU OWN and you're trying to exclude Site-A from Site-B's reporting, there are ways of doing that from within the GA control panel. You can add filters on the traffic to exclude IPs or domains.
Or, if you control the GA tracking codes on Site-B, you can do:
_gaq.push(["_addIgnoredRef", "Site-A.com"]);
If, however, you're working for Company-A, and you don't want people in Company-B to see your site in their report... ...that's where it can't be done without serious server-side header-manipulation.
No Change
clicking a link with rel="nofollow" will still send the current page as the referer.
A User browsing is not influenced by rel="nofollow"
nofollow applies to bots (site crawlers), google analytics tracks users (who are not bots). As such the nofollow on a link will have no effect on google analytics statistics - because it doesn't modify real-user activity.
Yes, it will appear as a referer. Nofollow tells robots not to follow this link and doesn't affect clients browser behaviour in any way.
http://en.wikipedia.org/wiki/Nofollow