138 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
WPHead says

Hey guys,

I need help with a page navi problem on my site. When you click on the page links at the bottom it redirects you to the page id but not the actual page.

So if you click on example.com/page/2 it redirects you to example.com/29 (29 happens to be the page id) and shows a 404 error.

Anyone know how to fix it?

I’ve disabled all plugins, tried creating a new .htacess file, different permalink structures, etc.

The site is premiumthemes.tv

Thanks for your help! :)

3007 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 more
duotive says

Leave the permaink structure to the default one and see what happens!

138 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
WPHead says
duotive said
Leave the permaink structure to the default one and see what happens!

Thanks for the reply :) Change it to default and nothing changed, had to delete cache plugin and then it worked.

When I change it back to what I have been using / postname / it doesn’t work anymore.

I noticed the navigation links are ?paged=2 so maybe that’s what causing the error since / postname / changes it to /page/2/.

What puzzles me though is that it worked before so not sure why it wouldn’t work now…

138 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
WPHead says

Not sure why, but when I’m logged in as admin the links work…

3007 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 more
duotive says
WPHead said
Not sure why, but when I’m logged in as admin the links work…

Because when you are logged in the cache dose not apply. Disable the cache and the links will work. You need to follow a guide on how to properly setup the cache plugin.

138 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
WPHead says
duotive said
WPHead said
Not sure why, but when I’m logged in as admin the links work…
Because when you are logged in the cache dose not apply. Disable the cache and the links will work. You need to follow a guide on how to properly setup the cache plugin.

Yes, I know and i’ve disabled the cache plugin (removed all files) to see if it works but it doesn’t. The plugin is set up exactly as on my other sites were it works without a problem.

3007 posts
  • Author had a File in an Envato Bundle
  • Bought between 1 and 9 items
  • Elite Author
  • Europe
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 100 and 199 users
+2 more
duotive says
WPHead said
duotive said
WPHead said
Not sure why, but when I’m logged in as admin the links work…
Because when you are logged in the cache dose not apply. Disable the cache and the links will work. You need to follow a guide on how to properly setup the cache plugin.
Yes, I know and i’ve disabled the cache plugin (removed all files) to see if it works but it doesn’t. The plugin is set up exactly as on my other sites were it works without a problem.

What is your permalink structure?

138 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
WPHead says
duotive said
WPHead said
duotive said
WPHead said
Not sure why, but when I’m logged in as admin the links work…
Because when you are logged in the cache dose not apply. Disable the cache and the links will work. You need to follow a guide on how to properly setup the cache plugin.
Yes, I know and i’ve disabled the cache plugin (removed all files) to see if it works but it doesn’t. The plugin is set up exactly as on my other sites were it works without a problem.
What is your permalink structure?

/ % postname % / (without spaces)

138 posts
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Referred between 200 and 499 users
WPHead says

The “Disable Canonical URL Redirection” plugin fixes the problem.

Thanks duotive for taking the time and try to help, I appreciate it :)

Edit: http://txfx.net/files/wordpress/disable-canonical-redirects.phps

by
by
by
by
by
by