301 redirect not working through .htaccess
Replace Redirect 301 / http://newsite.com/ by RewriteRule ^(.*)$ http://newsite.com/ [L,R=301]
Replace Redirect 301 / http://newsite.com/ by RewriteRule ^(.*)$ http://newsite.com/ [L,R=301]
So, the canonical URL is https://example.com/…. (You appear to be describing a pointless intermediary redirect? You should only redirect to the final canonical URL, no need for anything in between.) This is just a standard HTTP to HTTPS redirect. You can do this using mod_rewrite at the top of your .htaccess file. For example: RewriteEngine … Read more
Internal happenings explained When you look at wp_login_form(), then you will see, that the redirect argument will ask for an absolute URl. So either use admin_url() or site_url() if you want to link internally. The action/ target of this form is not meant to be changed (unless you set echo to FALSE and use some … Read more
Maybe this helps you? https://stackoverflow.com/questions/4267285/redirect-user-after-first-login-in-wordpress He seems to had a similar problem and solved it a year ago. What he does different to your approach is redirecting 48hrs after registration. Maybe this is enough? If not – I’m looking to do it your way. — EDIT Okay I just made a plugin what does exactly … Read more
Usually, this is a problem with the Site URL or WordPress URL not being set properly. If you just copied the database, WordPress itself will try to redirect the domain back to what it thinks is the right site. You have two options: 1. Edit the Settings Use PHPMyAdmin or a similar tool to edit … Read more
You can use the WordPress function wp_redirect(). If you want a redirect after login or logout, check the plugin Adminimize, it has an option for this. Two examples for a redirect in a custom plugin or functions.php of the theme (the following example uses the variable $pagenow): function fb_redirect_1() { global $pagenow; if ( ‘plugins.php’ … Read more
This is a late answer but this works for me: Change the RewriteCond to this RewriteCond %{HTTP:X-Forwarded-Proto} !https Should be like this: RewriteEngine On RewriteCond %{HTTP:X-Forwarded-Proto} !https RewriteRule ^(.*)$ https://yourdomain.com/$1 [R,L]
As @MarkKaplun suggests, it would be preferable to store this non-WordPress file in a different area of the filesystem altogether and rewrite the URL in .htaccess. Instead of mimicking the WordPress URL in the physical directory structure – which will likely only cause you (more) problems (not least that you would need to override the … Read more
You can skip the first Part of your .htaccess, just use the standard WordPress configuration. The main problem is, you need to create a new index.php in the root directory of your webspace, containing the following: <?php /** * Front to the WordPress application. This file doesn’t do anything, but loads * wp-blog-header.php which does … Read more
Notes before What you’re asking for is a highly complex thing: Load next post after WP internal Data finished, played with some 3rd party player Load next post after YouTube player (javascript or ActionScript) finished The problem is not the redirect 1), but more how you want to know how & when to load the … Read more