Created
August 26, 2021 08:15
-
-
Save tiendungdev/bac2697f55f5176c591b44df66a54968 to your computer and use it in GitHub Desktop.
follow, noindex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if(is_paged()){ echo '<meta name="robots" content="follow, noindex"/>'; } ?> | |
<?php | |
//check url neu co tu page thi cho noindex | |
$url = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; | |
if (strpos($url,'page') !== false) { | |
echo '<meta name="robots" content="follow, noindex"/>'; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment