Custom rewrite rules for /pastissues/%category%-%postname%.html

Or, you can do that – after headhache and spent one day to find a solution : You have to set ‘rewrite’ => false in your register_post_type(); and add after closing register_post_type() : // 404 CPT permalink WP bug… global $wp_rewrite; $projet_structure=”/projets/%projet%”; $wp_rewrite->add_rewrite_tag(“%projet%”, ‘([^/]+)’, “projet=”); $wp_rewrite->add_permastruct(‘projet’, $projet_structure, false); Where projet is my CPT See here … Read more

Moving WordPress.com site to personal domain intact

“Moving to .org” means “moving from WordPress.com blog provider to your own installation of WordPress which you can download from wordpress.org” – just to clear out your first point. And than, after you export all data from your wordpress.com account, while importing them to your local install, you’re asked to automaticly download all images. Answer … Read more

Server ip to Domain

I always run queries in phpmyadmin http://www.phpmyadmin.net or adminer http://www.adminer.org/: UPDATE wp_options SET option_value = replace(option_value, ‘http://www.olddomain.com/’, ‘http://www.newdomain.com/’) WHERE option_name=”home” OR option_name=”siteurl”; UPDATE wp_posts SET guid = replace(guid, ‘http://www.olddomain.com/’,’http://www.newdomain.com/’); UPDATE wp_posts SET post_content = replace(post_content, ‘http://www.olddomain.com/’, ‘http://www.newdomain.com/’); Yes, some will say to never change the GUID, but changing the domain gives you no choice. Your … Read more

Transfer WordPress

Really everything you need to know is in the docs. See Moving WordPress « WordPress Codex. They cover exporting/importing databases, moving uploads and other content, themes, etc. For particular issues with moving WP installs, search this site; many have already been answered.

Site Migration to WordPress: Handling Feeds

I think it can be done with a redirection plugin. I won’t recommend touching .htaccess file without expert knowledge. Add New Redirection like this: Source URL: /home?format=rss Target URL: http://YOUR_WORDPRESS_SITE/feed Save the settings.

require_once() error after moving WordPressto another server

Look towards the end of your wp-config.php file, you should have the definition for ABSPATH looking something like: /** Absolute path to the WordPress directory. */ if ( !defined(‘ABSPATH’) ) define(‘ABSPATH’, dirname(__FILE__) . “https://wordpress.stackexchange.com/”); If it’s a static path instead of the code above, then this might not correspond to your current path. Either change … Read more

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