Skip to content

Instantly share code, notes, and snippets.

@vineettalwar
Created June 29, 2020 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vineettalwar/0f695ea913f5f9462b2433873c1cfc31 to your computer and use it in GitHub Desktop.
Save vineettalwar/0f695ea913f5f9462b2433873c1cfc31 to your computer and use it in GitHub Desktop.
Index.php for yourls
<?php
//X-robots header
header("X-Robots-Tag: noindex, nofollow", true);
//fallback url
header('Location: https://example.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment