Mod Rewrite for PHP Website

Web hosting discussion, programming, and shared and dedicated servers.
1 post Page 1 of 1
by stevenb » Thu Jul 05, 2012 9:19 am
Greetings,

I would like to be able to support clean URLs at my fetchmyinfo.com website. For example, I would like for the user to be able to specify a URL such as:

http://fetchmyinfo.com/alpha

and have that translate to:

http://fetchmyinfo.com?id=alpha

I have created a .htaccess file with the following contents:

Action php-cgi /cgi-bin/php5
AddHandler php-cgi .php

RewriteEngine On
RewriteRule .* index.php?id=$1 [L]


However, when I navigate to http://fetchmyinfo.com/alpha I get the following error message:

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

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

More information about this error may be available in the server error log.

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

-------------------------------------------------------------------------------
Apache/1.3.41 Server at fetchmyinfo.com Port 80
=====


Can anyone assist me in correcting this error?

Thanks,
Steve Bockman
1 post Page 1 of 1

Who is online

In total there is 1 user online :: 0 registered, 0 hidden and 1 guest (based on users active over the past 5 minutes)
Most users ever online was 999 on Mon May 10, 2021 1:02 am

Users browsing this forum: No registered users and 1 guest