Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 24, 2012, 01:29:58 AM

Pages: [1]   Go Down
  Print  
Author Topic: 500 Internal Server Error  (Read 973 times)
stevewhitenc
Newbie
*
Offline Offline

Posts: 2


WWW
« on: September 27, 2010, 10:32:07 AM »

Okay, I can't get to either of my sites unless I delete the rewrite mod from the .htaccess file. Here's how it looks:

RewriteEngine on

# BEGIN WordPress
# END WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^links\.html$ "http\:\/\/alsbytes\.com\/als\-mnd\-links\/" [R=301,L]

This is from the error log:
[Mon Sep 27 10:24:56 2010] [alert] [client 174.37.205.71] /home/steve112/public_html/.htaccess: Invalid command '</IfModule>RewriteCond', perhaps mis-spelled or defined by a module not included in the server configuration


Don't really know jack about this kind of stuff, and I'm disabled with limited use of one hand only, and would really appreciate any help, these sites are my livelihood.

Thanks
Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5212



« Reply #1 on: September 27, 2010, 10:57:40 AM »

You have two separate lines run together:
Code:
</IfModule>
RewriteCond %{HTTP_HOST} ^.*$

You also don't need all the "escapes" in the rewrite line:
Code:
RewriteRule  ^links\.html$  http://alsbytes.com/als-mnd-links/ [R=301,L]
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
stevewhitenc
Newbie
*
Offline Offline

Posts: 2


WWW
« Reply #2 on: September 27, 2010, 03:10:21 PM »

Mr. Phil, thanks so much, you're a lifesaver!    Applause
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: