Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Php profile?=2 zamiast profile.php?id=2
wiktor0000
post
Post #1





Grupa: Zarejestrowani
Postów: 31
Pomógł: 0
Dołączył: 29.04.2018

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


Tak jak w temacie jakieś pomysły jak to zrobić
Sorry że spamuje (IMG:style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 2)
aras785
post
Post #2





Grupa: Zarejestrowani
Postów: 859
Pomógł: 177
Dołączył: 29.10.2009

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


W htaccess musisz dodać:

  1. RewriteEngine On
  2. RewriteRule ^profile?=([0-9]+)$ /profile.php?id=$1
Go to the top of the page
+Quote Post
Tomplus
post
Post #3





Grupa: Zarejestrowani
Postów: 1 879
Pomógł: 230
Dołączył: 20.03.2005
Skąd: Będzin

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


W tym kierunku idąc to twój url nie musi uzywać w ogóle znaku ?

wystarczy profile-2
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: 24.08.2025 - 10:37