• I have a big problem and I have no idea what to do.

    No matter what I type in the address bar for a category, my posts will still display perfectly.

    For example, let’s say the correct URL was:

    domain.com/category/post.html

    Well, if I typed these into the browser, they would also work:

    domain.com/retert/erterst/rtyrsysrtycategory/post.html

    domain.com/category/weaf/tarewar/wtf/post.html

    Basically I am not getting a 404 when I should be. I can type anything I want into the URL and the post is still working.

    How the heck do I fix this?

    Thank You!

Viewing 7 replies - 1 through 7 (of 7 total)
  • chatyak,

    What is showing in the 404.php file?

    Thread Starter chatyak

    (@chatyak)

    <?php get_header(); ?>

    <div id=”content” class=”narrowcolumn”>

    <h2 class=”center”>Error 404 – Not Found</h2>

    </div>

    <?php get_sidebar(); ?>

    <?php get_footer(); ?>

    WordPress will automatically find the match. It does it to me too.

    Thread Starter chatyak

    (@chatyak)

    Is there a way to remove this? Technically I could have inbound links pointing to made up pages, giving me thousands of duplicate articles.

    Thread Starter chatyak

    (@chatyak)

    Isn’t there a plugin or code I could paste somewhere to remove this function?

    Does the url auto switch to the correct url or does it stay gibberish in the address bar of browser?

    Put this in your functions.php of your theme.
    remove_filter(‘template_redirect’, ‘redirect_canonical’);

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Posts Work No Matter URL’ is closed to new replies.