Forums

Specifying the .htaccess location (3 posts)

  1. GoddessSheDevil
    Member
    Posted 3 months ago #

    I have been having permalink problems and I have narrowed it down to what I believe is the fix. I have multiple things using an .htaccess file which is the same one wordpress is trying to use. I figure if I am able to create an .htaccess file specifically for wordpress in a separate area from the other programs all problems will be fixed. However, I am not sure how to tell wordpress where the new location of the .htaccess file it should use is. I'm pretty knowledgeable in programming but am not sure where to put in the data to tell it it's new location for .htaccess.

    Thanks

  2. whooami
    Member
    Posted 3 months ago #

    you cant do that. thats not how Apache works.

  3. mrmist
    Member
    Posted 3 months ago #

    As whoami says, you can only have the .htaccess file, you can't substitute it with another file. However, you can have a .htaccess per directory, so..

    The only practical way to do something like this would be to have your blog in a sub-directory of your main site, that way it could have its own .htaccess file (which lives in the sub-directory.)

    If you did that, though, the site root's .htaccess may still take priority on incoming requests, if ruless clashed.

    WordPress generally behaves pretty well with the .htaccess file, as all of its changed go within the commented section which looks like

    # BEGIN WordPress
    ...
    # END WordPress

    This means that if your other web apps don't mess with that section, then all should be well. (Assuming the rules don't conflict). Of course, if the rules conflict then you're basically trying to run two incompatible apps in the same space. You may have to look at seperating something out.

Reply

You must log in to post.

About this Topic