Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Kohana]pozbycie się index.php
Spawnm
post
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ąć ?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Villentre
post
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]
Go to the top of the page
+Quote Post

Posty w temacie


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: 8.10.2025 - 18:27