Website down -error message -help!

Avatar
  • Answered
I am getting this error message:

RewriteCond: bad argument line '%{R'

How do I fix this? I am using Wordpress.

Thanks!
Avatar
JacobIMH
Hello theartsandcraftsplace, and thank you for your question. I've gone ahead and resolved this error for you. For future reference, you can use our guide on where is my .htaccess file located to take a look at your .htaccess file which had the broken RewriteCond in it. It looks almost as if the default WordPress rewrite code had been duplicated, but not completely. This is what you had before I made changes, with the problem highlighted in red:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{R
# 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>

# END WordPress

This is what is left now:

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

# END WordPress

I went ahead and tested the site and it looks like it should be working again now. If you're still having any issues at all, or have any further questions, please feel free to let us know! - Jacob