1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Two .htaccess files getting in the way of one another?

Discussion in 'Site & Server Administration' started by timallard, Sep 4, 2007.

  1. #1
    Hello

    I need a little help here.
    I currently have 2 things going on on my website.
    I have a domain name with a blog as the home page. There is a mod rewrite going on for the archive format of www.domain.com/08/03/my-post

    I also have a diretory located at www.domain.com/directory which also has a mod rewrite on for SEO friendly categories.

    Im getting cross collision with my htaccess and its not functioning 100%. when i click on my directory categories, i get sent to my blog 404 page... and im not sure how to keep the 2 seperate.

    Im thinkin on my blog htaccess i need to put in a line to have it not mod rewrite a specific subdir? not sure here. thanks for the help.

    -Tim
     
    timallard, Sep 4, 2007 IP
  2. 10101

    10101 Well-Known Member

    Messages:
    771
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    110
    #2
    do you think you could join the two .htaccess?
     
    10101, Sep 4, 2007 IP
  3. timallard

    timallard Well-Known Member

    Messages:
    1,634
    Likes Received:
    62
    Best Answers:
    0
    Trophy Points:
    158
    #3
    I could try, but im not sure if i am familiar enough to do so.

    Here is htaccess for my blog.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress




    and here is htaccess for my directory

    ...

    well wait a second now, i dont even see one for my directory but there has to be one.. im a little confused 0.o
     
    timallard, Sep 4, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    Odds are, when you upload one, and then reload the directory or close and open ftp, you can't see it through ftp. If the directory one doesn't have

    RewriteBase /directory/

    add that.
     
    Nintendo, Sep 4, 2007 IP
  5. VimF

    VimF Well-Known Member

    Messages:
    307
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    118
    #5
    Just put the rewrite for your directory before the rewrite for your wp blog.
     
    VimF, Sep 4, 2007 IP
    Remotay likes this.