Forums

[resolved] Permalinks aren't my best friend right now ...! (5 posts)

  1. seanwnz
    Member
    Posted 2 years ago #

    Hi everyone

    I have 4 wordpress blogs set up under one hosting account.

    They are all in sub folders, so:

    root/blog1
    root/blog2 etc

    For some reason, my permalinks keep failing, and I get the standard 404 error (not the 404 in wordpress).

    When I reset the permalinks back to default structure, save changes, then change back to /%postname% once again, then save changes... it works for a little while.

    Then I start getting standard 404 errors again.

    How do I fix this problem?

    Here is my .htaccess file as it currently stands:

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

    # END WordPress

    I thought it might have something to do with the 'RewriteBase /' option, but if I have more than one blog set up - how do I deal with multiple directories, i.e.:

    RewriteBase /blog1/
    RewriteBase /blog2/

    Can I even do that??

    Help greatly appreciated!! Thank you.

  2. mrkingid
    Member
    Posted 2 years ago #

    i believe each directory has its own .htaccess file that just consists of:

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

  3. seanwnz
    Member
    Posted 2 years ago #

    Mr King,

    Thank you for your suggestion.
    I have implemented and will be sure to post feedback if it works.

  4. mrkingid
    Member
    Posted 2 years ago #

    One thing that worked for me on one site that refused permalinks was this...

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

    Adding "Options FollowSymLinks" made all the difference. Might be worth a try.

    Mike

  5. seanwnz
    Member
    Posted 2 years ago #

    Thanks Mike, seems to have worked :)

Topic Closed

This topic has been closed to new replies.

About this Topic