Redirecting simple big problem

Better use a .htaccess redirect so you avoid even loading WP: Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://www.newdomain.com [R=301,L] If you want to keep the path after the domain, (e.g. www.olddomain.com/mypage -> www.newdomain.com/mypage) replace the last line with: RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Is it possible to detect if a POST action is for a “Save Post” before the save_post action?

Take a look at the Plugin API/Action Reference: Actions Run During an Admin Page Request.. Then add something simple to the appropriate hook: function wpse19260_inspect_post() { echo ‘<pre>’; // print_r( $_POST ); echo $_POST->ID; echo $_POST->post_content; echo $_POST->post_title echo ‘<pre>’; } add_action( ‘publish_post’, ‘wpse19260_inspect_post’ );

Import RSS as posts with redirect?

There is a plugin called FeedWordpress that does just that. It will appear as Syndication in your admin panel. The Posts & Links configuration panel of Syndication will control where the post title links to. The original source is an option.

Redirect to post_id?

The redirection plugin will automatically create a redirection rule when the postname is changed. If you use that (possibly in tandem with simple 301’s, though you’d be creating some overhead that way), you can work around it. It should be noted that I have never used simple 301’s, but I’ve used Redirection extensively.

Whenever I try to publish a post in wordpress, I always get redirected to the installation page…why?

I recently updated a handful of plugins and after the update finished, the redirect started happening. 1) Try deactivating those plugins and reactivate them one by one until the problem reoccurs. 2) Try Debug and see what PHP errors you might be getting. See https://codex.wordpress.org/WP_DEBUG Add define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_LOG’, true ); define( … Read more

Redirection with a wildcard

In your wp-config.php Just put this rule in there: define(‘WP_HOME’,’http://www.yourdomain.com’); define(‘WP_SITEURL’,’http://www.yourdomain.com’); Put it right above: /* That’s all, stop editing! Happy blogging. */

Mass .htaccess URL Forwarding

Have you looked at the Redirection plugin? You could make a rewrite rule for something like this: /([^\/]+/([1-9]+)/([^/]+)/? and then have it redirect to http://newsite.com/$1/$3, or something along those lines at least. I think you could do this with .htaccess as well, but I’m not familiar enough with the format for it to give you … Read more