This file contains 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
redirect 301 /eski-iletisim-url.html http://www.yenidomain.com/yeni-iletisim-url | |
redirect 301 /eski-iletisim-url.html http://www.newdomain.com/yeni-hakkimizda-url |
This file contains 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
RewriteEngine on | |
RewriteCond %{HTTP_HOST} !^www\.eskidomain\.com | |
RewriteRule (.*) http://www.yenidomain.com/$1 [R=301,L] |
This file contains 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
// Activate WordPress Maintenance Mode | |
function wp_maintenance_mode() { | |
if (!current_user_can('edit_themes') || !is_user_logged_in()) { | |
wp_die('<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later.'); | |
} | |
} | |
add_action('get_header', 'wp_maintenance_mode'); |