Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Mod rewrite] zmiana linków, automatyczna zmiana linków
mimol
post
Post #1





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

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


Witam!
Mam włączoną funkcje mod rewrite
zawartość: htacces
Kod
RewriteEngine On
RewriteRule ^index.html index.php
RewriteRule ^gate.* modules.php
#Surveys
RewriteRule ^surveys.html gate.html?name=Surveys
RewriteRule ^survey([a-zA-Z0-9]*)results.html gate.html?name=Surveys&op=results&pollID=$1
RewriteRule ^survey([a-zA-Z0-9]*).html gate.html?name=Surveys&pollID=$1

Zamiast adresu
Kod
http://www.gierki-online.xorg.pl/modules.php?name=Surveys&pollID=19

mogę wejść na
Kod
http://www.gierki-online.xorg.pl/survey19.html


Klikając w link wyniki otworzy się adres
Kod
http://www.gierki-online.xorg.pl/modules.php?name=Surveys&op=results&pollID=19


Czy jest możliwe aby mod rewrite sam zamienił ten link na
Kod
http://www.gierki-online.xorg.pl/surveys19results.html
questionmark.gif

Obecnie rozumiem że mod rewrite pozwala wejść na stronę wpisując inny adres. Ale czy mod rewrite sam potrafi zmieniać linki do adresów.questionmark.gif?
Go to the top of the page
+Quote Post

Posty w temacie
- mimol   [Mod rewrite] zmiana linków   24.01.2009, 14:36:40
- - erix   CytatCzy jest możliwe aby mod rewrite sam zamienił...   24.01.2009, 16:14:24
- - mimol   dziekuje za odpowiedx   24.01.2009, 16:55:47


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: 20.08.2025 - 22:17