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
# BEGIN Hide login page | |
RewriteRule ^mylogin$ https://%{SERVER_NAME}/wp-login.php?key=123&redirect_to=https://%{SERVER_NAME}/wp-admin/index.php [L] | |
RewriteCond %{HTTP_REFERER} !^https://%{SERVER_NAME}/wp-admin | |
RewriteCond %{HTTP_REFERER} !^https://%{SERVER_NAME}/wp-login.php | |
RewriteCond %{HTTP_REFERER} !^https://%{SERVER_NAME}/login | |
RewriteCond %{QUERY_STRING} !^key=123 | |
RewriteCond %{QUERY_STRING} !^action=logout | |
RewriteCond %{QUERY_STRING} !^action=lostpassword | |
RewriteCond %{REQUEST_METHOD} !POST |
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
/** Sets up WordPress vars and included files. */ | |
define( 'UPLOADS', 'wp-content/media' ); | |
require_once(ABSPATH . 'wp-settings.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
define( 'UPLOADS', 'wp-content/media' ); |
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
/** Sets up WordPress vars and included files. */ | |
require_once(ABSPATH . 'wp-settings.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
define( 'WP_PLUGIN_DIR', dirname(__FILE__) . '/new-folder/wp-content/plugins' ); | |
define( 'WP_PLUGIN_URL', 'https://your-site.com/new-folder/wp-content/plugins' ); |
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
define( 'WP_CONTENT_DIR', dirname(__FILE__) . '/directory/wp-content' ); | |
define( 'WP_CONTENT_URL', 'https://your-site.com/directory/wp-content' ); |
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
/** Loads the WordPress Environment and Template */ | |
require( dirname( __FILE__ ) . '/wp-blog-header.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
define('WP_SITEURL', 'https://' . $_SERVER['SERVER_NAME'] . '/application'); | |
define('WP_HOME', 'https://' . $_SERVER['SERVER_NAME']); |
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
define('WP_CONTENT_DIR', dirname(__FILE__) . '/public'); | |
define('WP_CONTENT_URL', 'http://' . $_SERVER['HTTP_HOST'] . '/public'); | |
define( 'WP_UPLOADS_DIR', dirname(__FILE__) . '/uploads' ); | |
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/application'); | |
define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); |
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
# BEGIN Hide login page | |
RewriteRule ^mylogin$ wp-login.php?key=123&redirect_to=http://%{SERVER_NAME}/wp- admin/index.php [L] | |
RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}/wp-admin | |
RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}/wp-login.php | |
RewriteCond %{HTTP_REFERER} !^http://%{SERVER_NAME}/login | |
RewriteCond %{QUERY_STRING} !^key=123 | |
RewriteCond %{QUERY_STRING} !^action=logout | |
RewriteCond %{QUERY_STRING} !^action=lostpassword | |
RewriteCond %{REQUEST_METHOD} !POST |