500 Internal server error from htaccess rules

Asked by:
santtu / 5 Points
Time:
2012-11-27 8:57 pm EST
Category:
Wordpress
Hits:
260
After knowledging the problem, in my Error log appears:

"[Tue Nov 27 16:52:09 2012] [alert] [client 157.55.33.109] /home/oclsig5/public_html/.htaccess: without matching section
"

The same error replicates aprox. 20 times with different client-numbers.

What should I do? I use WordPress.

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

JacobN
Staff
3,661 Points
2012-11-28 10:32 am EST
Hello Santtu, and thank you for your question.

Here is a link to our full tutorial on how to fix 500 errors.

It appears after looking at the Apache errors your site is generating, they all are having to do with a missing <IfModule> section in your .htaccess rules.

This is happening on line number 39, it appears that you have your rewrites repeated multiple times as well. You can read more about how to modify your .htaccess file here:

How to edit your .htaccess file

It almost looks like you could simply delete everything above line 45 and just keep the rest. At the very least you'd need to remove this section from line 38 - 42 to get rid of the errors:


38 # END WordPress
39 nd %{REQUEST_FILENAME} !-f
40 RewriteCond %{REQUEST_FILENAME} !-d
41 RewriteRule . /index.php [L]
42 </IfModule>


Please let us know if you have any other questions at all.

- Jacob

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.