![]() |
![]() |
--Andrzej-- |
![]()
Post
#1
|
Goście ![]() |
Witam serdecznie, wykorzystując następujący kod:
Kod <IfModule mod_rewrite.c> Options +FollowSymlinks # Options +SymLinksIfOwnerMatch RewriteEngine On RewriteBase / </IfModule> Options -MultiViews <IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php </IfModule> Próbuję usunąć rozszerzenie .php z aktualnie otwartego pliku. Wszystko działa dobrze dopóki do adresu nie dopisze się na końcu slasha "/". Powoduje to wygenerowanie błędu Cytat Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Czy wie ktoś jak to naprawić? Z góry dziękuje za pomoc. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 2 958 Pomógł: 574 Dołączył: 23.09.2008 Skąd: wiesz, że tu jestem? Ostrzeżenie: (0%) ![]() ![]() |
Kod RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule !\.(js|ico|gif|jpg|png|css|html)$ index.php RewriteRule ^.*$ index.php [NC,L] Przykładowy adres http://www.strona.pl/cos |
|
|
![]() ![]() |
![]() |
Aktualny czas: 10.10.2025 - 10:30 |