Viewing 15 replies - 1 through 15 (of 25 total)
  • Have you added the appropriate mod_rewrite rules to your .htaccess file yet? If you haven’t, then you need to do this for the permalinks to work properly.

    Codex explanation:
    http://codex.wordpress.org/Using_Permalinks

    Thread Starter ozgression

    (@ozgression)

    1.5 makes the htaccess by itself. I shouldnt need to add mod-rewrite rules to it. πŸ˜‰

    Thread Starter ozgression

    (@ozgression)

    So no-one is actually going to answer my query?

    NONE of my article specific links are working. Nor are archive or categories. I have been reading up on this issue and fiddling with it all night. I really hope someone sheds some light on this issue soon.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Pyeman, you did your permalinks wrong. Replace the .htm with a / .

    http://codex.wordpress.org/Using_Permalinks

    Thanks, but can you be a little more specific? I don’t actually have .htm anywhere in my permalink structure. I am using this:
    /%year%/%monthnum%/%day%/%postname%/

    Also, does the accompanying .htaccess file need to go in my blog’s directory or the main root of my website?

    Thanks very much.

    Thread Starter ozgression

    (@ozgression)

    What mod-rewrite rule do i need to get the archive pages working properly. WordPress generated the htaccess file.

    Thread Starter ozgression

    (@ozgression)

    Doesn’t anyone else suffer from this problem? All I did was install 1.5 and select permalinks in the admin area.

    I am having a very similar problem. However, when I create the .htaccess file for some reason all of my WP admin screens become unusable (Forbidden).

    What should the directory permissions be for the archive directories and for the .htaccess file?

    Thanks in advance,
    Rick
    MahiX2.com

    argh, even more problems now.

    I just tried pasting the mod_rewrite rules into the .htaccess file myself and now my entire site is down.
    http://www.mahix2.com
    When I try to load the site, I receive the error:

    Fatal error: Failed opening required ‘wordpress/wp-blog-header.php’ (include_path=’.:/php/includes:/usr/share/php’) in /home/virtual/site11/fst/var/www/html/index.php on line 4

    Please Help!
    Thanks,
    Rick

    I’m having this problem, too – I can post, but any attempt to add a comment results in a 404. I’m using the .htaccess that a fresh/clean WP1.5 installation generated.
    I’ve tried a number of different permalink structures (finally settled on /%year%%monthnum%/%post_id%/), but it isn’t happening.
    Here’s the .htaccess, if anyone knowledgeable wants to check it…

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ – [S=39]
    RewriteRule ^feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1 [QSA,L]
    RewriteRule ^page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^comments/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?&feed=$1&withcomments=1 [QSA,L]
    RewriteRule ^comments/page/?([0-9]{1,})/?$ /blog/index.php?&paged=$1 [QSA,L]
    RewriteRule ^search/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?s=$1&feed=$2 [QSA,L]
    RewriteRule ^search/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?s=$1&paged=$2 [QSA,L]
    RewriteRule ^search/(.+)/?$ /blog/index.php?s=$1 [QSA,L]
    RewriteRule ^category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?category_name=$1&feed=$2 [QSA,L]
    RewriteRule ^category/(.+)/page/?([0-9]{1,})/?$ /blog/index.php?category_name=$1&paged=$2 [QSA,L]
    RewriteRule ^category/(.+)/?$ /blog/index.php?category_name=$1 [QSA,L]
    RewriteRule ^author/([^/]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?author_name=$1&feed=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/page/?([0-9]{1,})/?$ /blog/index.php?author_name=$1&paged=$2 [QSA,L]
    RewriteRule ^author/([^/]+)/?$ /blog/index.php?author_name=$1 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&feed=$4 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&paged=$4 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2&day=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^date/([0-9]{4})/([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&feed=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&paged=$2 [QSA,L]
    RewriteRule ^date/([0-9]{4})/?$ /blog/index.php?year=$1 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/trackback/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&tb=1 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&feed=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&paged=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/([0-9]+)/?([0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&p=$3&page=$4 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/feed/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/(feed|rdf|rss|rss2|atom)/?$ /blog/index.php?year=$1&monthnum=$2&feed=$3 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/page/?([0-9]{1,})/?$ /blog/index.php?year=$1&monthnum=$2&paged=$3 [QSA,L]
    RewriteRule ^([0-9]{4})([0-9]{1,2})/?$ /blog/index.php?year=$1&monthnum=$2 [QSA,L]
    </IfModule>

    # END WordPress

    This might help you out… I had a similar problem with the %category% tag:

    http://wordpress.org/support/topic.php?id=26500#post-151408

    Using some of the hacks on the forum I was able to get the regular permalinks working as %category%/%postname%/ . However, these hacks only work if the category is a parent, I still can’t get this to work if the post’s category is a subcategory. The links turn out like this:

    http://www.domain.com/maincategoryname/subcategoryname/postname/

    and they all still produce 404s. Does anyone have a hack for getting permalinks to work when a subcategory is chosen? Anyone know if the WP developers are working on this bug? IMO, this is a really major bug that should have been worked out before 1.5 was released.

    hcm, what’s the URL and perhaps you could tell us what your htaccess rewrite rules are? 1.5’s subcategory handling works dandy in my install.

Viewing 15 replies - 1 through 15 (of 25 total)
  • The topic ‘Archives problem using Permalinks’ is closed to new replies.