Forums

Problem with Permalinks as part of our app uses the 404 (1 post)

  1. clickfind
    Member
    Posted 1 year ago #

    Hello all,

    we have written a directory that needs to be included in the WP Theme, what we did was use the 404.php in the /theme/ directory and check if there is a record in the database, if there is then display the content otherwise throw the 404.

    This all works nicely until WP actually tries to match the URL to posts in the DB. For exmaple:

    http://fakeurl.bingoport.co.uk/directory/england/k/

    redirects to

    http://fakeurl.bingoport.co.uk/2007/08/katie-price-the-face-of-foxybingo/

    We really do not want this redirection to happen for anything within our /directory/ folder. Is there anyway to adjust the .htaccess file or something? Maybe write a rule saying, do not apply the rewrite rules to anything in that directory, in that directory just call the 404.php that gets called now.

    Thanks in advance.

Topic Closed

This topic has been closed to new replies.

About this Topic