Links to an exisiting Page are now redirecting to a draft page?
Looks to be Redirection plugin issue. Think it’s been abandoned by its creator as it’s messed up a few of my sites.
Looks to be Redirection plugin issue. Think it’s been abandoned by its creator as it’s messed up a few of my sites.
Even though you’ve placed this rule at the top of the .htaccess file, RedirectMatch is a mod_alias directive so still runs after other mod_rewrite (ie. RewriteRule) directives, so you may have a conflict. Try changing this to a mod_rewrite directive. For example: RewriteRule ^language/(.*) /members/?members_search=$1 [R=301,L] NB: No slash prefix on the RewriteRule pattern when … Read more
As far as I can see, the function redirect_post, where the redirect_post_location filter resides, is not automatically called anywhere, so that filter won’t be triggered. The save_post hook (or preferably save_post_post_type) still works, but not with metaboxes, as Gutenberg saves these separately using ajax calls. Ajax calls run in the background and do not affect … Read more
Could be just a typo. Try writing: is_user_logged_in() Looks like just forgot the () UPDATE: Because you don’t want to redirect on every page load you have to hook your redirect. I here an example (taken and slightly edited from the docs): <?php function daro_login_redirect( $redirect_to, $request, $user ) { //is there a user to … Read more
It looks like some of your old site links are there in the database. Thats why it is redirecting to the users to the old site. My suggestion would be use this https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ Its a kind of php script. Be sure to keep the database backup before using it. This script will make search and … Read more
WordPress within a subdirectory of another WordPress environment doesn’t work
You could add a rewrite rule to improve the appearance of the URL while maintaining the same functionality: As an example: add_action(‘init’, ‘custom_shop_param’); function custom_shop_param() { add_rewrite_tag(‘%param%’,'([^&]+)’); add_rewrite_rule(‘^shop/([^/]+)/?$’,’index.php?page=shop¶m=$matches[1]’,’top’); } When you visit http://site/wp/shop/{somevalue} the value that proceeds the /shop/ portion of the URL will be matched and stored in the query var param which is … Read more
You can use the login_redirect filter to do this. One of the parameters is $request, which is the URL the user is coming from function wpse125952_redirect_to_request( $redirect_to, $request, $user ){ // instead of using $redirect_to we’re redirecting back to $request return $request; } add_filter(‘login_redirect’, ‘wpse125952_redirect_to_request’, 10, 3); The filter could additionally easily be used for … Read more
I experienced an issue similar to this several months ago. I was using a plugin to kill query strings from the URL for SEO purposes. Long story short the plugin was killing search pages and admin pages as well. As Chris_O mentioned the redirection plugin I encountered a similar redirection issue when track modify posts … Read more
Problem to redirect custom page using htaccess