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
| httpd -v |
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 | |
| //Purpose to Check Contents of the Robots.txt File for a Series of Domains in a Local Text File | |
| //define text file location | |
| $old_url_text_file = "list.txt"; | |
| //get contents of text file | |
| $old_url_list = file_get_contents($old_url_text_file); | |
| //process text file | |
| $old_urls = explode("\n", $old_url_list); | |
| $old_urls = array_filter(array_map('trim', $old_urls)); | |
| //loop through text files |
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 virtual_robots_disallow( $output, $public ) { | |
| $output .= "\n" . 'Disallow: /backup' . "\n"; | |
| return $output; | |
| } | |
| add_filter( 'robots_txt', 'virtual_robots_disallow', 10, 2 ); |
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
| errordocument 410 default | |
| redirectmatch 410 /url/ |
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
| #box { | |
| height: 90px; | |
| line-height: 90px; | |
| } |
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
| mysqldump db_name table_name > table_name.sql |
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
| grep -lr "text-you-are-searching-for" . |
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 | |
| //assumes you have a locations.php file in your plugin folder | |
| function advnap_kml() { | |
| $url = str_replace( trailingslashit( site_url() ), '', plugins_url( '/locations.php', __FILE__ ) ); | |
| add_rewrite_rule( 'locations\\.kml$', $url, 'top' ); | |
| } | |
| add_action( 'wp_loaded', 'advnap_kml' ); | |
| function advnap_plugin_activate() { | |
| flush_rewrite_rules(); |
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 if ( is_paged() ) { ?> | |
| <meta name="robots" content="noindex,follow" /> | |
| <?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
| UPDATE cms_content_props SET content = REPLACE(content,'find','replace'); |