Search code examples
wordpressurl

Showing same post with 2 different URL


I have a website in WordPress version (6.5.4) and face a URL related issue.

For example, I have post URL like https://www.example.com/testabc, but when I enter this type of URL https://www.example.com/testabc/page/3/, it shows the same preview instead of 404 or redirect to actual URL.

  1. I have set WordPress default .htaccess but it does not work
  2. Set permalink /%postname%/
  3. also checked with one by one plugin disable

Solution

  • I was facing like similar issue. Here's something you can try:

    can you find in function.php something like template_redirect or redirect_canonical remove these things or comment and check it may work.