WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks and files with same name (2 posts)

  1. citizenaim
    Member
    Posted 9 years ago #

    I tried searching for this already, because it seems like it might be a problem other people would have, but couldn't find anything.

    I have permalinks set up with my WP installation and whenever I create a page with the same name as a file I already have in the same folder, I get a 404.

    For example, if I have a file http://www.writography.net/photos.gif and then create a page and name it photos, which would be found at http://www.writography.net/photos/, I get the 404 error on that permalink URL. Is this something that can be fixed in my .htaccess file?

    Thanks,
    Aimee

  2. Kafkaesqui

    Posted 9 years ago #

    I reported this a few months back:

    http://trac.wordpress.org/ticket/1108

    There's no way to resolve it except through mod_rewrite modification. Take a look at a couple of Ryan's rewrite plugins, which may (or may not) help here:

    http://boren.nu/archives/2005/03/08/ungreedy-rewrite-plugin/
    http://boren.nu/archives/2005/03/07/reduced-rewrite-plugin/

    Beyond that it would be a hit or miss change of the rewrite rules.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags