Make WordPress “readonly” on a given site

Turn off commenting in your old blog using the following Plugin http://wordpress.org/extend/plugins/disable-comments/ Then turn off the new user registration from Settings->General by unchecking “Anyone can register” Hope it will help 🙂

Broken CSS after changing the site URL

If you have access to your mysql you can update the wp-options table. Before modification… $ mysql -u <db_user> –password=<db_pwd> -D <db_name> <<<“select * from wp_options where option_name in (‘siteurl’, ‘home’);” +———–+—————–+—————————————————————————————————+———-+ | option_id | option_name | option_value | autoload | +———–+—————–+—————————————————————————————————+———-+ | 1 | siteurl | http://172.17.0.2/wordpress | yes | | 2 | home … Read more

Recover WordPress blog from an inactive domain name

If you have problems to log even into your blog, edit wp-config.php: Add these two lines to your wp-config.php, where “example.com” is the NEW location of your site. define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); This will at least make it useable again (but won’t fix links inside post and page content, see Ticket #4003). . Additionally you can add … Read more

Migration issue – blog home page is blank

My experience with blank home page. Sometimes when you are migrating your page you can get blank home page. I found the problem with the home page not displaying from the base URL. it was because there was a default.html file in the root directory. The old hosting server must had set the order to … Read more

Change site url when moving site to another url?

Those parameters and admin settings change the URLs in the database. The only other way to do that is run SQL queries on the DB in phpmyadmin to change them: UPDATE wp_options SET option_value = replace(option_value, ‘http://olddomain.com’, ‘http://newdomain.com’) WHERE option_name=”home” OR option_name=”siteurl”; UPDATE wp_posts SET guid = replace(guid, ‘http://olddomain.com’,’http://newdomain.com’); UPDATE wp_posts SET post_content = replace(post_content, … Read more

Migrating Markdown (from Drupal)

Note: The following is largely untested (It worked after testing on one post). As you’ve pointed out when you edit a post, the plug-in takes the content in the database (HTML) and converts that to MarkDown for editing. Since in your case the content is actually not in HTML, but already in MarkDown, we want … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)