Support » Fixing WordPress » .htaccess problem – error: <IfModule takes one argument, Container for direct…

  • So I’m trying to update my permalink structure. And for whatever reason, my domain is not taking my htaccess file with the rewrite rules WordPress has me put in it. When I do upload the htaccess file, I get a 500 error page.

    So I investigated further and this is apparently the error that’s coming back:

    <IfModule takes one argument, Container for directives based on existence of specified modules, referer:

    So I’m stuck. Unsure what to do. If anyone had any insight, it would be greatly appreciated. Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Samuel Wood (Otto)

    (@otto42) Admin

    What is the content of the .htaccess file?

    It is:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Well, there’s nothing wrong with that .htaccess file, other than it’s missing the begin and end wordpress lines.

    Make the file read-only so WordPress cannot modify it, and then update your permalink structure.

    I did that… but whenever there’s an htaccess file up, I get a 500 error, be it a blank htaccess file or one with this specific code…

    Moderator Samuel Wood (Otto)

    (@otto42) Admin

    Talk to your host. Their server is broken in some undefined way.

    Until they fix their problem, you cannot use anything other than the default permalinks.

    Gotcha. Thanks Otto…

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘.htaccess problem – error: <IfModule takes one argument, Container for direct…’ is closed to new replies.