![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Moderatorzy Postów: 4 069 Pomógł: 497 Dołączył: 11.05.2007 Skąd: Warszawa ![]() |
witam , właśnie testuję kohane na localu i moje pytanie to jak pozbyć się z linku index.php ?
to imho brzydko wygląda strona z linkiem : http://127.0.0.1/kkohana/Kohana/index.php/home/page/tresc chciałbym aby było zwykłe http://127.0.0.1/kkohana/Kohana/home/page/tresc gdzieś to można usunąć ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 21 Pomógł: 10 Dołączył: 14.10.2008 Skąd: 127.0.0.1 Ostrzeżenie: (0%) ![]() ![]() |
Witam.
Winny jest plik .htacces, spróbuj z taką konfiguracją: Kod # Turn on URL rewriting
RewriteEngine On # Installation directory RewriteBase / # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php?kohana_uri=$0 [PT,L,QSA] |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 237 Pomógł: 1 Dołączył: 15.10.2004 Skąd: Lublin Ostrzeżenie: (0%) ![]() ![]() |
Witam. Winny jest plik .htacces, spróbuj z taką konfiguracją: Kod # Turn on URL rewriting RewriteEngine On # Installation directory RewriteBase / # Protect application and system files from being viewed RewriteRule ^(application|modules|system) - [F,L] # Allow any files or directories that exist to be displayed directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Rewrite all other URLs to index.php/URL RewriteRule .* index.php?kohana_uri=$0 [PT,L,QSA] Dzieki, problem rozwiązany. Wcisnąłbym pomógł, ale to nie mój wątek |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 06:34 |