Weird htaccess problem
-
Hi there,
My clients site recently went down and only replied with a 500 server error.
The hosting company said that it had something to do with the .htaccess file.They’ve changed this to a normal text file – htaccess.txt – and it has removed the problem. The site seems to be working ok at the moment, but I’m concerned that without the proper rewrite rules in the htaccess file that the site may break at certain points.
The site has also recently been attacked by various hacks, inserting code in various places, but I believe I got rid of all the problems – could the hacks have modified the htaccess file too?
I’ve copied and pasted the htaccess code here, does this look weird, and why would it cause the site to stop working?
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Cheers
Niall
- The topic ‘Weird htaccess problem’ is closed to new replies.