WordPress.org

Forums

.htaccess problem - error: <IfModule takes one argument, Container for direct... (7 posts)

  1. amplifyinteractive
    Member
    Posted 7 years ago #

    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: http://www.amplify-interactive.com/blog/wp-admin/options-permalink.php

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

  2. What is the content of the .htaccess file?

  3. amplifyinteractive
    Member
    Posted 7 years ago #

    It is:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
  4. 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.

  5. amplifyinteractive
    Member
    Posted 7 years ago #

    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...

  6. 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.

  7. amplifyinteractive
    Member
    Posted 7 years ago #

    Gotcha. Thanks Otto...

Topic Closed

This topic has been closed to new replies.

About this Topic