Phani
Phani

Reputation: 559

Wordpress pages redirecting to Home page

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.

Upvotes: 4

Views: 30245

Answers (5)

Rajwant
Rajwant

Reputation: 151

fixed

I had a similar problem.

But only some selected pages were redirecting to home. And these pages which were redirecting worked on page no. permalink setting.

Tried everything as mentioned above, nothing worked.

I cleared my browser cache and it was all good again.

Upvotes: 0

Old question but I had the same issue and tried all solutions with no luck. Even deleting htaccess didn't work. I changed my settings to set latest posts as my homepage and then changed it to the desired page and that did the trick (at least for now)

Upvotes: 0

Janatbek
Janatbek

Reputation: 465

I had this issue today and found that Yoast SEO have a permalinks setting which had two of my pages listed as redirect to home page.

I don't recall myself setting them up, but thankfully there was a button to delete those pages from that list.

enter image description here

Upvotes: 1

Adam K.
Adam K.

Reputation: 912

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.

Upvotes: 1

Rahul Mishra
Rahul Mishra

Reputation: 179

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.

Upvotes: 6

Related Questions