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
cd /etc/yum.repos.d/ && wget https://letsencrypt-for-cpanel.com/static/letsencrypt.repo |
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
SELECT * FROM `newprefix_usermeta` WHERE `meta_key` LIKE '%wp_%' |
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
SELECT * FROM `newprefix_options` WHERE `option_name` LIKE '%wp_%' |
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
RENAME table 'wp_blogs' TO 'newprefix_blogs' ; | |
RENAME table 'wp_blog-versions' TO 'newprefix_blog_versions' ; | |
RENAME table 'wp_registration_log' TO 'newprefix_registration_log' ; | |
RENAME table 'wp_site' TO 'newprefix_site' ; | |
RENAME table 'wp_sitemeta' TO 'newprefix_sitemeta' ; |
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
RENAME table `wp_commentmeta` TO `newprefix_commentmeta`; | |
RENAME table `wp_comments` TO `newprefix_comments`; | |
RENAME table `wp_links` TO `newprefix_links`; | |
RENAME table `wp_options` TO `newprefix_options`; | |
RENAME table `wp_postmeta` TO `newprefix_postmeta`; | |
RENAME table `wp_posts` TO `newprefix_posts`; | |
RENAME table `wp_terms` TO `newprefix_terms`; | |
RENAME table `wp_term_relationships` TO `newprefix_term_relationships`; | |
RENAME table `wp_term_taxonomy` TO `newprefix_term_taxonomy`; | |
RENAME table `wp_usermeta` TO `newprefix_usermeta`; |
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
RENAME table `wp_tablename` TO `newprefix_tablename`; |
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
$table_prefix = 'wp_'; |
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_filter('site_url', 'wplogin_filter', 10, 3); | |
function wplogin_filter( $url, $path, $orig_scheme ) | |
{ | |
$old = array( "/(wp-login\.php)/"); | |
$new = array( "myprivatelogin"); | |
return preg_replace( $old, $new, $url, 1); | |
} |
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
RewriteBase / | |
RewriteRule ^myprivatelogin$ wp-login.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
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] |