![]() |
![]() ![]() |
![]() |
![]() ![]()
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 (IMG:http://forum.php.pl/style_emoticons/default/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.(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) ? |
|
|
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 15 467 Pomógł: 1451 Dołączył: 25.04.2005 Skąd: Szczebrzeszyn/Rzeszów ![]() |
Cytat Czy jest możliwe aby mod rewrite sam zamienił ten link na Nie jest możliwe. mod_rewrite działa tylko jako parser dla adresów, ale ich nie zamienia. Musisz zrobić to ręcznie. |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 247 Pomógł: 5 Dołączył: 10.12.2007 Ostrzeżenie: (0%) ![]() ![]() |
dziekuje za odpowiedx
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 11:57 |