Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> mod rewrite, Prosta zamiana
mimol
post
Post #1





Grupa: Zarejestrowani
Postów: 247
Pomógł: 5
Dołączył: 10.12.2007

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


witam!
Mam nuka i chciałbym skrócić adresy. Testowałem serwer obsługuje mod rewrite
http://www.adres.domena.pl/modules.php?name=Your_Account
chciałbym by również działało
http://www.adres.domena.pl/Your_Account/
Co trzeba dopisać?
Próbowałem tak ale nie działa
Kod
RewriteRule ^/([a-zA-Z]+)/$ /modules.php?name=$1

P.S. tych wyrażen po modules.php?name jest dośc dużo. Chciałbym aby po prostu ucinał "modules.php?name=" w adresie

Ten post edytował mimol 20.01.2009, 11:25:36
Go to the top of the page
+Quote Post
EarthCitizen
post
Post #2





Grupa: Zarejestrowani
Postów: 286
Pomógł: 70
Dołączył: 13.01.2009

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


Kod
RewriteRule ^([a-zA-Z_]+)$ modules.php?name=$1
Go to the top of the page
+Quote Post
mimol
post
Post #3





Grupa: Zarejestrowani
Postów: 247
Pomógł: 5
Dołączył: 10.12.2007

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


dziękuję bardzo
jeszcze jedna prosba
http://www.adres.domena.pl/modules.php?nam...amp;file=sudoku
aby bylo http://www.adres.domena.pl/Forums/sudoku

Ten post edytował mimol 20.01.2009, 11:30:28
Go to the top of the page
+Quote Post
erix
post
Post #4





Grupa: Moderatorzy
Postów: 15 467
Pomógł: 1451
Dołączył: 25.04.2005
Skąd: Szczebrzeszyn/Rzeszów




http://forum.php.pl/index.php?showtopic=107785
Go to the top of the page
+Quote Post
zegarek84
post
Post #5





Grupa: Zarejestrowani
Postów: 1 332
Pomógł: 294
Dołączył: 12.10.2008
Skąd: Olkusz

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


Cytat(mimol @ 20.01.2009, 11:26:52 ) *

Kod
RewriteRule ^\/([a-zA-Z_]+)\/([a-zA-Z_]+)$ modules.php?name=$1&file=$2
Go to the top of the page
+Quote Post
mimol
post
Post #6





Grupa: Zarejestrowani
Postów: 247
Pomógł: 5
Dołączył: 10.12.2007

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


Cytat(zegarek84 @ 20.01.2009, 15:50:00 ) *
Kod
RewriteRule ^\/([a-zA-Z_]+)\/([a-zA-Z_]+)$ modules.php?name=$1&file=$2


to mi nie działa...
Go to the top of the page
+Quote Post

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: 23.08.2025 - 05:06