Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mod_rewrite - nazwa.pl
huntercs
post
Post #1





Grupa: Zarejestrowani
Postów: 94
Pomógł: 0
Dołączył: 6.02.2005

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


Podana niżej regułka nie działa mi na serwerze nazwa.pl, na localhoscie i innym działa
chcąc korzystać z $_SERVER['PATH_INFO'] chcę usunąc fragment index.php z urla
(somehost.pl/index.php/controller/action/params > na > somehost.pl/controller/action/params)
  1. <?php
  2. RewriteEngine on
  3. RewriteCond $1 !^(index.php|images|robots.txt)
  4. RewriteRule ^(.*)/index.php/$1 [L]
  5. ?>

miał już ktoś taki problem z nazwa.pl?
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: 21.12.2025 - 15:17