. htaccess how to jump.
Determine if there are keywords such as Google in the routing URL, and then jump to the new URL.
If the keyword does not appear, open normally?
Can this be achieved?
Completely small white ah, to help everyone. . htaccess
Share to:
------Solution--------------------
Your purpose can be achieved through the anti-theft chain of the HTTP protocol.
if (Isset ($_server[' http_referer ')) {
Judging $_server[' http_referer ' isn't there Google
If yes, the description is this website, if not, then the description is not this site,
if (Stristr ($_server[' http_referer '), "Google") ===false) {
Header (' Location: Correct url.php ');
}else{
Jump to Warning page
Header (' Location:warning.php ');
}
}else{
Jump to Warning page
Header (' Location:warning.php ');
}
If you have to make it through. Htacess, you can see the PHP video tutorial of the Preach Wisdom podcast PHP Large portal Core technology-static 8 (using the Apache rewrite mechanism to achieve page pseudo-static 1), which is also mentioned in this knowledge point.
------Solution--------------------
Apache Anti-theft chain