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
| // Add whatever URLs you want to replace with the current home URL | |
| $replace_urls = array('http://exampleoldsite.com/mysite'); | |
| $uri = str_replace("{$_SERVER['DOCUMENT_ROOT']}/", '', dirname(__FILE__)); | |
| $home_url = sprintf('%s://%s/%s', $_SERVER['SERVER_PORT'] == 443 ? 'https' : 'http', $_SERVER['SERVER_NAME'], $uri); | |
| define('WP_SITEURL', $home_url); define('WP_HOME', $home_url); | |
| function replace_old_urls($html) { global $replace_urls; return str_replace($replace_urls, WP_SITEURL, $html); } | |
| ob_start('replace_old_urls'); |
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
| # Some sensible defaults | |
| Options +FollowSymLinks -Indexes | |
| AddDefaultCharset UTF-8 | |
| ServerSignature Off | |
| # Hide sensitive information | |
| RedirectMatch 404 /\.git | |
| RedirectMatch 404 /*.sql | |
| RedirectMatch 404 /Gruntfile.js |
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
| ####################################### | |
| # Operating Systems # | |
| ####################################### | |
| # OS X | |
| .DS_Store | |
| ._* | |
| .Spotlight-V100 | |
| .Trashes |
NewerOlder