Blog has an infinite redirect loop

Is WordPress configured to use www or without www? Your server seems to be listening only for the www version and tries to redirect non-www requests to the www version. Considering that you provided a link to the non-www version of the domain above, my guess is that WordPress is trying to hook on to … Read more

Redirect user if they are not logged in

function redirect_user() { if ( $_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’] == ‘www.abc.com/’ ) { if ( ! is_user_logged_in() ) { wp_redirect( ‘http://www.abc.com/de/’ ); exit; } } } add_action( ‘init’, ‘redirect_user’ ); Do you mean something like this?

HTML Redirect to WP pages

You could add something like this in your htaccess: RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^redirect\.html$ /%1 [L,R=301] EDIT: based on comments, you’ll need some additional conditionals to sort different query strings. RewriteCond %{REQUEST_URI} ^/redirect.html(.*)$ RewriteCond %{QUERY_STRING} ^p=test$ RewriteRule (.*) /new-test/ [L,R=301] RewriteCond %{REQUEST_URI} ^/redirect.html(.*)$ RewriteCond %{QUERY_STRING} ^p=pagename$ RewriteRule (.*) /new-page/ [L,R=301] I also highly recommend this … Read more

301 redirect from old URL structur to new

You can make a catch on 404 in wordpress with filter 404_template Or you can use redirection plugin: http://wordpress.org/plugins/redirection/screenshots/ with Regex. Can you follow the link in this Question: Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/

User redirect to specific URL after logging in

You should pass the $user as a parameter to member_permalink() instead of relying on get_current_user_id(). From the codex about the login_redirect filter: The $current_user global may not be available at the time this filter is run. So you should use the $user global or the $user parameter passed to this filter. Sample updated code: function … Read more

Redirecting connection from IP to localhost

Trying to change edit the wp-config.php file was a good idea, let’s try some extra things to see if they solve the problem. Let’s add these lines to the bottom of your functions.php: update_option( ‘siteurl’, ‘http://LOCAL_HOST_IP/wordpress’ ); update_option( ‘home’, ‘http://LOCAL_HOST_IP/wordpress’ ); Using Relocate method Edit your wp-config.php file inserting: define(‘RELOCATE’,true); After that, from your browser … Read more