Viewing 4 replies - 1 through 4 (of 4 total)
  • Hmm. What does your .htaccess file look like?

    Thread Starter Anonymous


    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /wp/index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /wp/index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /wp/index.php?year=$1&monthnum=$2&name=$3&page=$4 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([_0-9a-z-]+)/(feed|rdf|rss|rss2|atom)/?$ /wp/wp-feed.php?year=$1&monthnum=$2&name=$3&feed=$4 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([_0-9a-z-]+)/trackback/?$ /wp/wp-trackback.php?year=$1&monthnum=$2&name=$3 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp/wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp/wp-feed.php?feed=$1&withcomments=1 [QSA]
    </IfModule>

    it doesnt work if i remove the “<ifmodeule>” thing…..

    The only differences I can spot between yours and mine are the following:

    • The “ifmodule” thing, which as you mentioned, is necessary.
    • The “/wp” at the beginning of every URL.

    So, I don’t really know what to say. It may be that your hosting provider doesn’t allow rewrite rules, but that would seem a bit silly to me.
    I’m probably miles off.
    The only thing I could possibly suggest is to use the permalink rewriting that does not use .htaccess. That’s where you have index.php between your site’s URL and the permalink path. Instructions are somewhere within the software, I think. But other that, I don’t know.

    I agree with greghaspants
    It is the permalink rules that are wrong – click on your archives link to see.
    The Base you have /wp/ is wrong as you do not have that directory, so I would try removing that (have just / as Base) and remove all the other /wp/ too.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘404 error on permalinks’ is closed to new replies.