Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Linki
attimo
post
Post #1





Grupa: Zarejestrowani
Postów: 115
Pomógł: 6
Dołączył: 23.01.2010

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


Witam,

Chciałbym wiedzieć jak się tworzy "dynamiczne linki" tzn. na pewno widzieliście na tronach szczególnie sklepach internetowych, że po kliknięciu w produkt otwiera nam sie jego strona z opisem itd. url takiej strony sklada sie z xxx.pl/kategoria/produkt.html zastanawiam sie jak tworzy sie takie linki.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
gothye
post
Post #2





Grupa: Zarejestrowani
Postów: 702
Pomógł: 65
Dołączył: 16.03.2009

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


tworzysz plik .htaccess

a tak mniej wiecej przedstawia się jego zawartość :

  1. Options +FollowSymLinks
  2. Options ALL -Indexes
  3.  
  4. RewriteBase /sklep
  5.  
  6. RewriteRule ^index index.php
  7. RewriteRule ^register index.php?module=register
  8. RewriteRule ^login$ index.php?module=login [NC,L]
  9. RewriteRule ^logout$ index.php?module=logout [NC,L]
  10. RewriteRule ^invitations$ index.php?module=invitations [NC,L]
  11. RewriteRule ^forum$ index.php?module=forum [NC,L]
  12. RewriteRule ^blog/([0-9]+)/([0-9-]+)$ index.php?module=blog&id=$1&blog=$2 [NC,L]



(IMG:style_emoticons/default/winksmiley.jpg)




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: 3.10.2025 - 11:57