Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wordpress pages redirecting to Home page

Tags:

php

wordpress

I have a wordpress website at http://www.wjewel.com/ . All the pages of the website are getting redirected to home page. There is no .htaccess file or web.config file for redirections. Can someone please guide me what could be the reason for this issue.

like image 945
Phani Avatar asked Nov 14 '25 15:11

Phani


2 Answers

Resetting the permalinks within WordPress will resolve this issue.

To reset the permalinks for your WordPress installation:

  • Log into the WordPress Dashboard.
  • In the side panel, go to Settings > Permalinks.
  • Make note of the current setting. (If you are using a custom structure, copy or save the custom structure somewhere.)
  • Select the Default option.
  • Click Save Changes.
  • Now select the previous setting you had before Default was selected.
  • Click Save Changes.
like image 136
Rahul Mishra Avatar answered Nov 17 '25 10:11

Rahul Mishra


Redirection is done on client side. You have this meta tag in the html head.

<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.wjewel.com">

(It has nothing to do with PHP headers)

I'd try to look for plugins injecting that meta tag or theme header.

Also just an observation - html body on /about/ page (for example) is empty.

like image 44
Adam K. Avatar answered Nov 17 '25 09:11

Adam K.



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!