Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [inne].htaccess 2 reguly przepisywania - error 500
Forum PHP.pl > Forum > Przedszkole
thurinon
Witam, jeżeli mój plik .htaccess wygląda tak:
Kod
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?site=$1 [L]

lub tak:
Kod
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*),(.*)$ /index.php?site=$1&id=$2 [L]


To wszystko jest ok, ale jeżeli zrobię:
Kod
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*),(.*)$ /index.php?site=$1&id=$2 [L]
RewriteRule ^(.*)$ /index.php?site=$1 [L]

dostaję
Kod
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@friko.pl 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.

Czyli popularną przy htaccess 500-kę. Nie wiem czy to ma jakieś znaczenie ale jest to darmowy serwer na friko.pl
Jak zawsze za wszelką pomoc będę dozgonnie wdzięczny :-]
Z góry dzięki :-)

PS. Jak źle nazwałem ten temat to przepraszam ale w tym temacie jestem taak ciemny że ...
erix
Cytat
Czyli popularną przy htaccess 500-kę. Nie wiem czy to ma jakieś znaczenie ale jest to darmowy serwer na friko.pl

Darmowe serwery często mają pouwalaną obsługę pewnych "oczywistości". Ale ok, każdy ten etap dorastania przechodzi (w którym stwierdzasz, że darmówka, to zł... zuo, Sodoma i Gomora, etc).

Proponuję najpierw sprawdzić to wszystko na localhoście, potem można pomodzić.

i:
[APACHE] pobierz, plaintext
  1. RewriteEngine on
  2. RewriteCond %{REQUEST_FILENAME} !-f
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteRule ^(.*),(.*)$ /index.php?site=$1&id=$2 [L]
  5. RewriteCond %{REQUEST_FILENAME} !-f
  6. RewriteCond %{REQUEST_FILENAME} !-d
  7. RewriteRule ^(.*)$ /index.php?site=$1 [L]
[APACHE] pobierz, plaintext

jak już.
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.