WordPress.org

Ready to get started?Download WordPress

Forums

URL structure is interfering with other things (5 posts)

  1. blogpress
    Member
    Posted 7 years ago #

    So I have WordPress installed in root:
    http://www.wordpress.com

    then I install another script (not releated to WordPress) at http://www.wordpress.com/script/file.php

    But it can not access that, because it says "Post can not be found", so WordPress thinks it is a post, while it is another file that I need to access.

    So WordPress is interfering. I have tried to change structure to the "default" one, but that did not work either.

    I also tried another type of file, same problem, I can not access it because WordPress think it is something for itself.

    So how to fix this?

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Is the /script directory password protected by any chance?

  3. blogpress
    Member
    Posted 7 years ago #

    Nope, it is not password protected.

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Then what you're describing should not happen. The .htaccess that WordPress uses has two rules in it that explicitly allows requests for existing files/directories to go through and not get redirected to WordPress.

    Those would be the lines in the .htaccess ending with -f and -d, respectively.

    Note that if these lines did not actually work, your WordPress pages would look rather odd, since all the stylesheet and images and such on the page are using direct requests and not relying on WordPress' redirects.

    So either your WordPress page looks terrible, or you misspelled or mistyped the URL, or something else is going on. When you get redirected to WordPress, then the file is not found where you think it should be.

    Is the file a symbolic link? Is the directory a symbolic link? What's special about your file or your particular case that is letting that particular file not get found while all the others are (stylesheets, images, etc)?

  5. blogpress
    Member
    Posted 7 years ago #

    Alright thanks for the tips. It is maybe not WordPress.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags