home page redirect loop after update to 4.8
home page redirect loop after update to 4.8
home page redirect loop after update to 4.8
Allow GET request on certain page
An htaccess rewrite rule ought to do it. Check out this post https://mediatemple.net/community/products/dv/204643270/using-htaccess-rewrite-rules for examples of what you might do. The one you use will depend on whether content in zzz is the same as the bbb site. If you just want to redirect everything (any page) on bbb to zzz, then this should work: … Read more
WordPress stores the site URL in a few places in the database in serialized arrays, which can break if you do a simple search & replace on the database. You need to use a tool like this which is aware of serialized arrays to do the replacement. You can bypass the broken URLs enough to … Read more
The nameservers listed for your domain are still at wordpress.com – you need to go into the domain section of your 123-reg panel and set those to 123-reg defaults.
The problem is that you have a mistake in your IF logic, it should have two == and not one. As it is, the first IF is giving the value ypa to $_POST[‘contest’] instead of comparing. The block of IFs should be: if (isset($_POST[‘contest’]) && “ypa” == $_POST[‘contest’]){ $contest_page = $site_url.’/young-photographers-award-2017/young-photographers-award-2017-upload-submit/’; } if (isset($_POST[‘contest’]) && … Read more
I used the Really Simple SSL plugin, which will do all the work for you: change the htaccess file, and ensures that all links are https. No muss, no fuss. https://wordpress.org/plugins/really-simple-ssl/ If you want to do it yourself, you’ll need to change the site values in Settings, General, change all templates that contain hardcoded HTTP … Read more
You do not need to keep the page when redirecting.
Found the problem / the solution: while using the proxy, the servers variable REQUEST_URI is not the same using FoxyProxy, server var ‘REQUEST_URI’ return the full url: $_SERVER[‘REQUEST_URI’] -> “hxxp://mydomain.com/theurl” using windows host file, server var ‘REQUEST_URI’ return just the end of the url: $_SERVER[‘REQUEST_URI’] -> “/theurl” so I added this to the wordpress index.php … Read more
At the top of your index page. You could add. if( isset( $_GET[‘ref’] ) && $_GET[‘ref’] !== ” ) wp_safe_redirect( ‘/signup’ ) Then, on the sign up page add: $the_referer = isset($_SERVER[‘HTTP_REFERER’]) ? $_SERVER[‘HTTP_REFERER’] : ”; So you can do whatever you want with that, I would add some escaping etc and you’ll prob have … Read more