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....

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.