Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne][PHP] skrocenie folderu w mod rewrite
krzystyn
post
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 1
Dołączył: 2.04.2011

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


mam taki adres:

Kod
http://localhost/blog/templates/show.php?id=2


robie sa regulke modrewrite:

Kod
RewriteRule show,(.*)\.html show.php?id=$1


i wychodzi:

Kod
http://localhost/blog/templates/show,2.html


a jak zrobic, zeby wyszlo:

Kod
http://localhost/blog/show,2.html

czyli bez folderu /templates/ ?
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 19.08.2025 - 10:29