Redirect after the registration

I have 2 registration pages, one for Korean, and one for English. The Korean registration is okay. The page /register is redirect to /checkout page. (registration leads to subscription based) after the registration.

On the other hand, the English registration page /register-eng is supposed to redirect to /checkout/?lang=en page. but after the registration, /register-eng also redirects to the same /checkout page.

Is there any apply_filter function to force redirect my English registration page to /checkout/?lang=en page?

Thanks in advance.

Redirect stop working

I am building a Members only WordPress site using Astra Theme with WooCommerce, WooCommerce Cart Abandonment Recovery, Beaver Builder Plugin (Lite Version), Ultimate Addons for Beaver Builder – Lite, Carousel Slider, My Custom Functions, New User Approve, Peter’s Login Redirect, Redirection, Shortcode in Menus, Starter Templates, Theme My Login, Tuxedo Big File Uploads and WP-MLM as active Plugins.

It works 100% the way I wanted it to work on my localhost, but when I go live on the server everything works except the Redirections if I activate the WP-MLM Plugin. When the WP-MLM Plugin is activated I cannot Logout. If I attempt to Logout I get a blank screen. If I refresh I get a message "You are attempting to log out of MySite" "Do you really want to log out?" although I have deactivated this in functions.php with this code:

function wp_nonce_ays( $  action ) {     if ( 'log-out' === $  action ) {         $  html = sprintf(             /* translators: %s: Site title. */             __( 'You are attempting to log out of %s' ),             get_bloginfo( 'name' )         );         $  html       .= '</p><p>';         $  redirect_to = isset( $  _REQUEST['redirect_to'] ) ? $  _REQUEST['redirect_to'] : '';         $  html       .= sprintf(             /* translators: %s: Logout URL. */             __( 'Do you really want to <a href="%s">log out</a>?' ),             wp_logout_url( $  redirect_to )         );     } else {         $  html = __( 'The link you followed has expired.' );         if ( wp_get_referer() ) {             $  html .= '</p><p>';             $  html .= sprintf(                 '<a href="%s">%s</a>',                 esc_url( remove_query_arg( 'updated', wp_get_referer() ) ),                 __( 'Please try again.' )             );         }     }      wp_die( $  html, __( 'Something went wrong.' ), 403 ); } 

I hope someone can give me some insight on what I am doing wrong? All successful logout’s must be redirected to the login page as was set up in Peter’s Login Redirect Plugin.

Redirect htaccess

I need to help with redirect my page.

For example I have websites I need to move content from to That is not problem and I do that with a change home_page URL. That work pretty well. But Now I need to add redirect from old to I want to do with .htaccess but that does not work. Can you help me guys?

Here are some of my attempts of this but both does not work.

RewriteEngine On RewriteRule [L,R=302] 


RewriteEngine On Redirect 302 

Thank you for your help and time guys.

Major search engines redirect an HTTP link to a scammy pharmacy site

There is an HTTP website (not HTTPS) that works perfectly fine when the URL is directly typed into the address bar or when links are clicked from other websites/applications like Reddit, Facebook, and Discord.

The exceptions are the major search engines: Google, Yahoo, and Bing. When clicked from one of these sites, it is redirected to a scammy pharmacy site with one of many different domain names. This occurs in Chrome, Firefox, and Edge; it also occurs on Android smartphones. (Bing only does this in Chrome; it works fine in Firefox and Edge.) This issue occurs for multiple people on many different devices.

Interestingly, other search engines (Dogpile, Baidu, Ask, DuckDuckGo, Yandex, etc.) seem to work fine.

What could be the cause of this behavior? Do the search engines or the website need to be fixed, and how? Would converting to HTTPS help, and why?

The website in question is I am not the webmaster, but as a programmer and web developer I am curious about this issue.

Exclude folder from redirect

WordPress redirects everything in wp-content if accessed directly to 404 with the following:

<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$   - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> 

What I want to do is not redirect the contents of a sub folder

Any ideas how I can achieve this?

Redirect users from admin pages the optimal solution

On two different sites I use two somewhat different solutions. Are they different in terms of security and performance? Which is better? Are there even better ones?

Solution 1.

/** Redirect users from admin pages if not administrators **/ add_action( 'admin_init', function() {     if( ! current_user_can( 'manage_options' ) && ( ! wp_doing_ajax() ) ) {         wp_safe_redirect( site_url() );         exit;     } } ); 

Solution 2.

/** Redirect users from admin pages if not administrators **/ add_action( 'admin_init', function() {     if( ! in_array( 'administrator', wp_get_current_user()->roles ) ) {         wp_redirect( get_bloginfo( 'wpurl' ) );         exit;     } } ); 

WordPress redirect from URL with BuddyPress

I am using the plugin BuddyPress on my WordPress site and when the user clicks on their profile they are redirected to the URL "/members/USERNAME/profile/home/". However, I do not want this page to be there and so I would like the profile ‘landing’ page to be the URL "/members/USERNAME/activity/".

I am not experienced with WordPress or PHP but I attempted to code a redirect for this when the user ends up on the ‘home’ page which is placed within my BuddyPress members/single/home.php file within my child theme:

$  redirect_url_home = get_home_url(); $  redirect_url_home_tt = $  redirect_url_home; $  username_redirect_tt = wp_get_current_user(); $  new_redirect_slug = "'/members/'.$  username_redirect_tt->user_login.'/activity/'"; $  redirect_url_home_tt. = $  new_redirect_slug; echo($  redirect_url_home_tt); wp_safe_redirect( $  redirect_url_home_tt ); 

This code doesn’t work but that was my thinking of how to solve my problem and I’m sure there is an easier/nicer way to do what I would like, maybe even without a coded redirect and within BuddyPress itself? I have tried using their forum/documentation for answers but haven’t had a reply or found anything useful.

As I say I have no experience with this sort of stuff so any help would be greatly appreciated! Also, to add, I cannot link the site as it is currently on a localhost.