Support » Fixing WordPress » .htacess Rewrite Error

  • I hope somebody can help me with an issue I’m having with .htaccess.

    I installed some plugins to create an intranet area on my client’s website: Add Multiple Users, Page Security by Contexture, TinyMCE Advanced.

    It seems every now and then that the contents of my .htaccess triggers an internal server error. When the first one happened it turned out that the .htaccess had disappeared completely. This weekend the server workers replaced the .htaccess file with another to correct it. I’ve posted the contents of the original .htaccess below – the engineers have suggested I review the rewrite rules to correct the problem, but this is beyond me!

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

    ## END WordPress

    The replacement .htaccess file contains the following:

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

    The only differences I can see is the extra < at the beginning and the spacing – could this be causing a problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Perhaps the double “R” (line 3) or the fact that the first line is commented out could be causing problems?

    I think the extra R and extra < are causing the error, but don’t know why they are being added to the file…?

    I should have said that the original file contains:

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

    And the corrupted file is:

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

    ## END WordPress

    I’d written it the other way before, apologies

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘.htacess Rewrite Error’ is closed to new replies.