Wordpress
Security Basics:
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 604 .htaccess
Move from http to https:
#UPDATE wp_options SET option_value = replace(option_value, 'http://www.granadillamedia.com', 'https://www.granadillamedia.com') WHERE option_name = 'home' OR option_name = 'site url'
#UPDATE wp_posts SET guid = replace(guid, 'http://www.granadillamedia.com','https://www.granadillamedia.com')
#UPDATE wp_posts SET post_content = replace(post_content, 'http://www.granadillamedia.com', 'https://www.granadillamedia.com')
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.granadillamedia.com','http://www.granadillamedia.com')
Footer Copy Write Auto Date(Year)
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
chmod 604 .htaccess
Move from http to https:
#UPDATE wp_options SET option_value = replace(option_value, 'http://www.granadillamedia.com', 'https://www.granadillamedia.com') WHERE option_name = 'home' OR option_name = 'site url'
#UPDATE wp_posts SET guid = replace(guid, 'http://www.granadillamedia.com','https://www.granadillamedia.com')
#UPDATE wp_posts SET post_content = replace(post_content, 'http://www.granadillamedia.com', 'https://www.granadillamedia.com')
UPDATE wp_postmeta SET meta_value = replace(meta_value,'http://www.granadillamedia.com','http://www.granadillamedia.com')
Footer Copy Write Auto Date(Year)
<script type="text/javascript">
document.write(new Date().getFullYear());
</script>
Comments
Post a Comment