How to fix URL with pageid example /?p= too many redirection error
In case someone looking for answers in the future, I have solved the issue by searching for add_filter(‘redirect_canonical’ in all the plugins and found the culprit.
In case someone looking for answers in the future, I have solved the issue by searching for add_filter(‘redirect_canonical’ in all the plugins and found the culprit.
You can assign the 404.php as a template to your custom 404 page created with the page builder. You would need to edit the 404.php to something like this: <?php /** * Template Name: 404 */ get_header(); $query = new WP_Query([ ‘posts_per_page’ => 1, ‘post_type’ => ‘page’, ‘meta_key’ => ‘_wp_page_template’, ‘meta_value’ => basename(__FILE__) ]); if … Read more
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] Replace %{HTTP_HOST} with your canonical hostname. For example: RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] You will need to clear your browser cache before testing.
Looks like it might be your WPML. See here: https://wpml.org/forums/topic/wpml-add-rewritebase-en-in-htaccess/ For posterity, the summary of this page is as follows: Problem: Some wrong settings caused an issue with “Use directory for default language”. A 500 error was showing. Solution: The client reports here that pressing the ‘Reset Settings’ button in WPML -> Languages probably solved … Read more
First off, most of the following is speculation, since there are a few details that are unknown. What’s happening when it doesn’t work? Anything? Nothing? Also, are you trying to redirect only the home page or have you moved the whole site to this new domain name? If you are trying to point everything from … Read more
# Redirection to HTTPS RewriteCond %{SERVER_PORT} ^80$ RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] This rule is in the wrong place. It needs to go before the # BEGIN WordPress comment marker. ie. Before the WordPress front-controller. Currently, this will result in a redirect to /index.php if requesting HTTP. # BEGIN SecuPress hotlink <IfModule mod_rewrite.c> RewriteEngine On RewriteCond … Read more
As WordPress documentation says about .htaccess file: WordPress uses this file to manipulate how Apache serves files from its root directory, and subdirectories thereof. Most notably, WP modifies this file to be able to handle pretty permalinks. And a basic .htaccess file content will looks like this: # BEGIN WordPress RewriteEngine On RewriteRule .* – … Read more
Settings in .htaccess tell the server how to handle requests. Since the site previously allowed both www and non-www URLs, you’ll want to keep your .htaccess in place, so old links redirect properly. However, that doesn’t tell WP that it’s now living in the www subdomain; it stores URLs in many places. You can ignore … Read more
I spoke to the web host, WP Engine, who advised us that an extra license is required to turn a WP site into MU, which we don’t currently have. They confirmed the error was caused by our lack of a MU license.
Did you also change the site URL in the settings? WordPress needs correct settings for these, otherwise the login page on steamsigs.com will still do the post to amazon40.com and you’ll never get the correct cookies set.