Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [inne][Access]"maskowanie" pliku
bartek4175
post
Post #1





Grupa: Zarejestrowani
Postów: 284
Pomógł: 1
Dołączył: 15.08.2013

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


Witajcie!

Chcę zrobić cos takiego:

mam plik register
do niego czasem jest parametr ref
teraz jest tak:
register.php?ref=1
chciałbym, żeby było:
/register/1

da się tak zrobić? ;d
proszę o pomoc
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
RaiZeN
post
Post #2





Grupa: Zarejestrowani
Postów: 112
Pomógł: 4
Dołączył: 6.03.2014
Skąd: Suwałki

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


  1. Options FollowSymLinks
  2. RewriteEngine On
  3. RewriteRule ^register/([^-]+)$ register.php?ref=$1 [L]
Go to the top of the page
+Quote Post
bartek4175
post
Post #3





Grupa: Zarejestrowani
Postów: 284
Pomógł: 1
Dołączył: 15.08.2013

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


Cytat(RaiZeN @ 13.12.2015, 12:39:05 ) *
  1. Options FollowSymLinks
  2. RewriteEngine On
  3. RewriteRule ^register/([^-]+)$ register.php?ref=$1 [L]

Tyler że jak nie ma argumentu ( ref ) to nic nie wyswietla

i źle pobiera css :CC
Go to the top of the page
+Quote Post
com
post
Post #4





Grupa: Zarejestrowani
Postów: 3 034
Pomógł: 366
Dołączył: 24.05.2012

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


no to dodaj sobie regułę dla bez query i css ustaw na bezwzględny adres smile.gif
Go to the top of the page
+Quote Post

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: 21.08.2025 - 22:58