.htaccess not working after page slug change
.htaccess not working after page slug change
.htaccess not working after page slug change
Your tag archive hasn’t stopped working because it never existed to begin with. WordPress displays items via the main loop and this takes 2 forms: Individual Posts Post archives If you want to list the categories or tags of your site, you’ll need to create a page for that and use code be it via … Read more
From the official code reference: wp_redirect() does not exit automatically, and should almost always be followed by a call to exit; So, you need to call exit after the redirect: $curauth = (get_query_var(‘author_name’)) ? get_user_by(‘slug’, get_query_var(‘author_name’)) : get_userdata(get_query_var(‘author’)); if ( get_user_role($curauth->ID) === ‘subscriber’ ): wp_redirect( ‘http://redirect-here.com’ ); exit; //here! endif;
if ( is_bbpress() && !is_user_logged_in() ) { wp_redirect( ‘https://www.xy.com/intranet’); // if this redirects to your login page } And this is your login form: $args = array( ‘echo’ => true, ‘redirect’ => site_url( $_SERVER[‘REQUEST_URI’] ), // this will redirect ‘form_id’ => ‘loginform’, ‘label_username’ => __( ‘Username’ ), ‘label_password’ => __( ‘Password’ ), ‘label_remember’ => __( … Read more
Re-save permalinks Settings –> Permalink –> Save settings try access to http://example.com/slideshows/test/page/1/ or http://example.com/slideshows/test/paged/1/ Problem with your plugin/code
This isn’t really a WP question and it’ll likely get closed…anyway…your registrar should allow you to do an immediate redirect (called domain forwarding), which will take care if it via DNS. So, keep the domain but shut off the hosting service since you don’t need it. Updated: The domain forwarding is a simple HTTP 301 … Read more
You can add ?offers=/http://tracking.affiliate-link.com&aff_id=123 after your link and then check in the destination page (in this case the homepage) if is set $_GET[‘offers’], and in the case that it is, redirect to the content of the var, which is the url. In the WordPress system I would create a page called “Offers” that would be … Read more
There are several ways to enable https on your wordpress site. You need to update your site urls including https in it if you have access to your dashboard You can also define both the WP_SITEURL and WP_HOME in your test wp-config.php define( ‘WP_SITEURL’, ‘http://example.com.mytestdomain.com’ ); define( ‘WP_HOME’, ‘http://example.com.mytestdomain.com’ ); In relation to your nginx … Read more
Redirect to Page after Login (with variable)
just use the login_redirect filter and return RSVP form page permalink. add_filter( “login_redirect”, “redirect_on_login”, 10, 3 ); function redirect_on_login( $redirect_to, $requested_redirect_to, $user ) { // check the user’s role $role = $role = array_shift($user->roles); if( $role == “custom-role” ) { return get_permalink(/* post/page id of RSVP Form */); } }