Jump to content

[SOLVED] Rewrite Rule Giving me 500 Internal Error on Lunarpages


limitphp

Recommended Posts

What does the Apache error log say?

 

 

[Tue Mar 31 13:26:11 2009] [alert] [client 66.249.71.71] /home/greckle0/public_html/.htaccess: RewriteRule: cannot compile regular expression '^playlist/([a-zA-Z0-9-]+)/([a-zA-Z0-9-_]+)/?$'\n

 

here is the entire htaccess file:

suPHP_ConfigPath /home/greckle0/public_html/

RewriteEngine on

RewriteRule ^page([a-zA-Z0-9]*)/?$ index.php?currentpage=$1	[NC,L]

RewriteRule ^artist/([a-zA-Z0-9-]+)/?$ artist.php?artistNameHash=$1	[NC,L]

RewriteRule ^comments/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ comment.php?artistNameHash=$1&songNameHash=$2	[NC,L]

RewriteRule ^searchPlaylists/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?$ searchPlaylists.php?artistNameHash=$1&songNameHash=$2	[NC,L]

#RewriteRule ^playlist/([a-zA-Z0-9-]+)/([a-zA-Z0-9-_]+)/?$ playlist.php?p_username=$1&nameHash=$2	[NC,L]

RewriteRule ^user/([a-zA-Z0-9-]+)/?$ user.php?u_username=$1	[NC,L]

 

I actually commented that line out, so I don't know how its giving it an error.

Plus, it worked on my test server (wamp server).

 

I added that first line with the suphp because the lunarpage support staff said I had to because they use suPHP....

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.