Jump to content

Rewrite rule causing 500 error


Drongo_III
 Share

Recommended Posts

Hello

 

I have a really basic regex on a rewrite rule that is causing a 500 error and I cannot see why it would.

 

I have a directory called 'help'.  What I want is for anytime someone hits the help directory with a tailing url it will simply get rewritten back to help (there are some ajax generated pages).

 

so if someone hits /help/kittens they'll simply get rewritten back to help.

 

However, when I try to use the following rewriterule in htaccess it just gives me a 500 error.

RewriteEngine On
RewriteRule ^help/([a-z]+) /help [NC,L]

Any help would be appreciated.

 

Drongo

 

 

Link to comment
Share on other sites

This thread is more than a year old. Are you sure you have something important to add to it?

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.

 Share

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