Error 500 : Internal server error

Status
Not open for further replies.

jamdess

New Member
Messages
15
Reaction score
0
Points
0
Hi,

I have some problems with my htaccess file.
I use the mod_rewrite for my website, but my htaccess seems to create a internal server error.
I've add my htaccess file to the htaccess file who was in my "public_html" folder,


Code:
RewriteEngine on
RewriteRule ^favicon\.ico$ favicon.ico [L]
RewriteRule ^search\.html$ index.php?module=search [L]
RewriteRule ^modules/(.*)$ index.php [L]
RewriteRule ^down/(.*)$ $0 [L]
RewriteRule ^thumbs\.php(.*)$ modules/upload/$0 [L]
RewriteRule ^libs/(.*)$ $0 [L]
RewriteRule ^img/(.*)$ $0 [L]
RewriteRule ^includes/(.*)$ $0 [L]
RewriteRule ^style\.css$ $0 [L]
RewriteRule ^([a-zA-Z]+)/?(/([a-zA-Z]+)(_([0-9a-zA-Z-|]+))?\.html?)?$ index.php?module=$1&action=$3&options=$5 [L]
RewriteRule ^.*$ index.php [L]

And here is my log

Code:
[Fri Sep 28 04:08:31 2007] [alert] [client 83.114.194.18] /home/soslinux/public_html/.htaccess: RewriteRule: cannot compile regular expression '^([a-zA-Z]+)/?(/([a-zA-Z]+)(_([0-9a-zA-Z-|]+))?\\.html?)?$'\n


Could you help me ?
thank's a lot

/J

ps:i'm really sorry for my bad english.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Well it's saying it doesn't like the line:
RewriteRule ^([a-zA-Z]+)/?(/([a-zA-Z]+)(_([0-9a-zA-Z-|]+))?\.html?)?$ index.php?module=$1&action=$3&options=$5 [L]

I'm not that advanced with Regex so I'm not really sure what is wrong with it. Try getting support from the script creator.

-Corey
 

jamdess

New Member
Messages
15
Reaction score
0
Points
0
heu,

I'm the script creator
And I don't understand why this host doesn't accept it, 'cause, it worked with my different old host.
Sometimes, i nedd to add "RewriteBase / " by that doesn't solve the problem here.

Is it possible to have a log more "verbose" ? cause, I really don't understand why with this host, this line doesn't work.

Regards,

/J
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
Not really sure, the only thing we don't allow is overriding in the .htaccess file besides that we don't restrict it. I'm not sure how to make it report a better error, if you do let me know and I'll look into it.

-Corey
 
Status
Not open for further replies.
Top