Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [inne].htaccess 2 reguly przepisywania - error 500
thurinon
post
Post #1





Grupa: Zarejestrowani
Postów: 55
Pomógł: 2
Dołączył: 8.10.2009

Ostrzeżenie: (0%)
-----


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 ...
Go to the top of the page
+Quote Post
erix
post
Post #2





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




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ż.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 18:57