05-07-2007, 21:05
|
|
|
חבר מתאריך: 12.08.05
הודעות: 883
|
|
בעיה בmod_Rewrite
אהלן..
יש לי בעיה עם ה"מוד" הזה...
ככה נראה הקובץ .htaccess שלי:
קוד:
RewriteEngine On
RewriteBase /
RewriteRule ^page/(.*)\.html page.php?rewrite=$1 [L]
זה התוכן המלא שלו... 3 שורות!
וככה נראה קובץ הphp שלי:
קוד:
<?
if( $_GET['rewrite'])
{
$request = $_GET['rewrite'];
mod_rewrite( $request, '/', '-' );
}
echo $_REQUEST['id'];
echo $_REQUEST['name'];
?>
ההודעה שאני מקבל כשאני נכנס לתיקיה שבה נמצאים הקבצים האלה:
ציטוט:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, sahar@nativgroup.com 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.
--------------------------------------------------------------------------------
Apache/1.3.33 Server at ispot.selfip.biz Port 80
|
אני יודע שהבעיה קשורה לקובץ .htaccess אבל לא הבנתי מה בדיוק הבעיה בו...
אמור להיות לו פתיח?
בכל מקרה תודה רבה על כל עזרה שתתקבל...
|