How to fix url with pageid example /?p= too many redirection error

Question

I have recently updated my wordpress to 5.5 and i encountered too many redirection error when i use url with page id /?p=1234 (previously it was working before update). It keeps redirecting to /1 regardless of post id number

I am using multisite and in my permalink settings i am using /%postname%/

Checking redirection i get this

?p=1234
301 Moved Permanently
1
301 Moved Permanently
1
301 Moved Permanently
1

my .htaccess

# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
#add a trailing slash
RewriteEngine On
RewriteCond %{REQUEST_URI} /+[^.]+$ 
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /index.php/$1 [L,QSA]
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
#add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress

Any help on how to further check or solve this?

0
, Calvin 5 months 0 Answers 54 views 0

Leave an answer