Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][.htaccess] Przyjazny link
menhils
post
Post #1





Grupa: Zarejestrowani
Postów: 32
Pomógł: 0
Dołączył: 6.01.2012

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


Ten link służy do wyświetlenia profilu:
http://.........../index.php?action=profil&profil=pokaz&id=1 - Jak zrobić z tego przyjazny link?

Tak to wygląda w php
  1. index.php?action=profil&profil=pokaz&id='.$user_data['user_id'].'


A to plik .htaccess:

  1. Options FollowSymLinks
  2. RewriteEngine On
  3.  
  4. RewriteRule ^index.html$ index.php [L]
  5. RewriteRule ^profil.html$ index.php?action=profil [L]
  6. RewriteRule ^edytuj_profil.html$ index.php?action=profil&profil=edytuj [L]
  7. RewriteRule ^lista_uzytkownikow.html$ index.php?action=profil&profil=lista [L]


Jak zrobić z tego przyjazny link


--------------------
http://golden-towns.tk/ - Gra połączona za zarabianiem
Go to the top of the page
+Quote Post

Posty w temacie
- menhils   [PHP][.htaccess] Przyjazny link   4.03.2012, 14:39:56
- - Pacio   KodRewriteRule ^profil-([0-9]+).ht...   4.03.2012, 15:06:00
- - menhils   Dzięki działa. Leci +   4.03.2012, 15:12:16


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 - 09:00