production site routes to staging site after cloning

Check your production site’s wp-config.php file for one or both of these lines: define( ‘WP_HOME’, ‘https://example.com’ ); define( ‘WP_SITEURL’, ‘https://example.com’ ); …and set them as appropriate if they exist. These constants will override the settings in the database if they’re present. See Editing wp-config.php for details.

Create a permalink to a pdf?

You can accomplish the first part using the Quick Page/Post Redirect Plugin. Just set the Request URL to /resume and the Destination URL to /wp-content/uploads/2021/07/Resume-v4.pdf For the second part of your question, you can add a redirect rule to your .htaccess file: Redirect /wp-content/uploads/2021/07/Resume-old.pdf /resume The way you worded your question you actually would set … Read more

Permalinks do not include www subdomain

Settings in .htaccess tell the server how to handle requests. Since the site previously allowed both www and non-www URLs, you’ll want to keep your .htaccess in place, so old links redirect properly. However, that doesn’t tell WP that it’s now living in the www subdomain; it stores URLs in many places. You can ignore … Read more

Redirect User on Login based on role WP 3 – Multi-Site

you need to populate the current_user_can(”) function before using it using get_currentuserinfo(); so try this code: add_action( ‘admin_menu’, ‘fb_redirect_2’ ); function fb_redirect_2(){ get_currentuserinfo(); if ( current_user_can(‘edit_posts’)){ //redirect here } }

Parked domain redirect

Hi @user2924: Use the ‘template_redirect’ hook; put the following in your theme’s ‘functions.php’ file: add_action( ‘template_redirect’, ‘yoursite_template_redirect’ ); function yoursite_template_redirect() { if (strtolower($_SERVER[‘HTTP_HOST’])==’www.domain-b.com’) wp_safe_redirect(‘http://www.domain-a.com/pagex’.$_SERVER[‘REQUEST_URI’]); exit; }

Migrating to Tumblr [closed]

I’m thinking if there’s no easy way, I could process a WordPress export and use the Tumblr API write method to re-create all the posts, including date and slug… the URLs are likely to end up a little different, though, so I might need to use some mod-rewrite magic until Google picks up on the … Read more