I am not to sure where to put this post but this seemed like the best place.

I am currently writing scripts for page redirects, however, I can not get my .htaccess redirects working first.
I need to take from my root, and redirect to a subscript:

http://www.example.com -> /index.php
http://www.example.com/newpage -> /pages/fetchpage.php?id=newpage

I have other RewriteRules already no problem, but when I add the following line:

RewriteRule ^(.*) pages/fetchpage.php?id=$1 [NC,L]

I get a server error:

500 Internal Server Error
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, support@globat-inc.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.


RewriteBase         /
RewriteCond         %{HTTP_HOST}        ^tinyclark.com                              [NC]
RewriteRule         ^(.*)$              http://www.tinyclark.com/$1                 [R=301,L]

And I also tried commenting out all other Rules in the event of conflicting rules, and still no change. I have seen the above example on numerous sites giving no one else problems.

Any and all help is greatly appreciated.

This should help:

RewriteEngine On
RewriteRule ^([^/]*)$ /pages/fetchpage.php?id=$1 [L]