This file contains hidden or 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
if (isset($_GET['controller']) && $_GET['controller'] == 404) { | |
$t_url = explode('?', $_SERVER['REQUEST_URI']); | |
$redirect = current($t_url); | |
header('Location: ' . $redirect, true, 301); | |
exit(); | |
} else if ($_SERVER['REQUEST_URI'] == '/best-sales??controller=404&p=2') { | |
$redirect = '/best-sales?p=2'; | |
header('Location: ' . $redirect, true, 301); | |
exit(); | |
} else if ($_SERVER['REQUEST_URI'] == '/best-sales??controller=404&p=143') { |
This file contains hidden or 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
if (isset($_GET['controller']) && $_GET['controller'] == 404) { | |
$t_url = explode('?', $_SERVER['REQUEST_URI']); | |
$redirect = current($t_url); | |
header('Location: ' . $redirect, true, 301); | |
exit(); | |
} |
This file contains hidden or 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
function yoast_seo_canonical_change_category( $canonical ) { | |
$request_uri = $_SERVER['REQUEST_URI']; | |
if( strstr($request_uri, '/blog/') && strstr($request_uri, '/page/') ){ | |
$t_url = explode('?', $request_uri); | |
$url = current($t_url); | |
$canonical = site_url($url); | |
} | |
return $canonical; |
This file contains hidden or 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
<style> | |
.form_sticky{position:fixed;top:140px;} | |
</style> | |
<script> | |
function sticky_sidebar() { | |
var window_top = jQuery(window).scrollTop(); | |
if (window_top > 500) { | |
jQuery('#form_landing').addClass('form_sticky'); | |
} else { | |
jQuery('#form_landing').removeClass('form_sticky'); |
This file contains hidden or 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
service httpd restart |
This file contains hidden or 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
#!/bin/bash | |
# If Chrome crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences | |
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences | |
# Run Chromium and open tabs | |
/usr/bin/chromium-browser --start-fullscreen https://web1.com https://web2.com https://web3.com & | |
# Start the kiosk loop. This keystroke changes the Chromium tab |
This file contains hidden or 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
#!/bin/bash | |
# If Chrome crashes (usually due to rebooting), clear the crash flag so we don't have the annoying warning bar | |
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' /home/pi/.config/chromium/Default/Preferences | |
sed -i 's/"exit_type":"Crashed"/"exit_type":"Normal"/' /home/pi/.config/chromium/Default/Preferences | |
# Run Chromium and open tabs | |
/usr/bin/chromium-browser --start-fullscreen https://web1.com & |
This file contains hidden or 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
$bots = array(); | |
$bots[] = "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; Googlebot/2.1; +http://www.google.com/bot.html) Chrome/W.X.Y.Z‡ Safari/537.36"; | |
$bots[] = "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"; | |
$bots[] = "Googlebot-Image/1.0"; | |
$bots[] = "Googlebot/2.1 (+http://www.google.com/bot.html)"; | |
$bots[] = "Mozilla/5.0 (compatible; Bingbot/2.0; +http://www.bing.com/bingbot.htm)"; | |
$bots[] = "Mozilla/5.0 (compatible; Yahoo! Slurp; http://help.yahoo.com/help/us/ysearch/slurp)"; | |
$bots[] = "DuckDuckBot/1.0; (+http://duckduckgo.com/duckduckbot.html)"; | |
$bots[] = "Mozilla/5.0 (compatible; YandexBot/3.0; +http://yandex.com/bots)"; | |
$bots[] = "facebookexternalhit/1.0 (+http://www.facebook.com/externalhit_uatext.php)"; |
This file contains hidden or 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
552 keywords | |
lavadoras | |
lavadoras baratas | |
lavadoras segunda mano | |
lavadoras alcampo | |
lavadoras carrefour | |
lavadoras pequeñas | |
lavadoras beko | |
lavadoras industriales | |
lavadoras balay |
This file contains hidden or 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 | |
// ejemplo de uso | |
// https://dominio/keywords_google.php?search=lavadoras&lang=es | |
// resultados para la keyword lavadoras | |
// https://gist.github.com/vivirenremoto/e6373a847903501b8d2b07b6e658feab | |
function get_curl($url){ | |
$ch = curl_init(); |