htaccess

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
my_raj_raj2
Forum Commoner
Posts: 28
Joined: Mon Mar 20, 2006 8:06 am
Location: India

htaccess

Post by my_raj_raj2 »

Hi,

I put htaccess code in my site

Code: Select all

RewriteEngine On
 RewriteRule ^(.+)\.html$ index.php?mod=$1 [L,QSA] 
 Redirect temp ErrorDocument 404 index1.php?mod=view-page
 ErrorDocument 500 "/errors//http-error.cgi"
I used this coding.but i received

"Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, [no address given] and inform them of the time the error occurred, and anything you might have done that may have used the error.

More information about this error may be available in the server error log. "


what i do?

Anybody know how to solve it?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

comment out lines to figure out which line is actually causing the problem first.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Check the last two lines. I'm not sure I've seen 'temp' in any other .htaccess file (though I'm by no means a guru). Also try taking out the double quotes from the last line.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply