Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mod_rewrite] prosty problem
trylik
post
Post #1





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 16.10.2006

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


RewriteRule ^index.php\?a=newsarch /newsy/glowna [R]

dlaczego to nie chce działać?

ma przekierować z index.php?a=newsarch na /newsy/glowna

probowalem tez:

RewriteRule ^index.php?a=newsarch /newsy/glowna [R]
RewriteRule ^index.php\?a\=newsarch /newsy/glowna [R]
RewriteRule ^(index.php\?a=newsarch) /newsy/glowna [R]
RewriteRule index.php\?a=newsarch /newsy/glowna [R]

czy moze ktos stwierdzyc czy jest to poprawnie napisane?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
trylik
post
Post #2





Grupa: Zarejestrowani
Postów: 23
Pomógł: 0
Dołączył: 16.10.2006

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


kolejnosc jest ok, chodzi o to , zeby klienta ktory wejdzie na stara adresacje przekierowalo na nowa....

zobacz zreszta kolejny wpis w htacc..

Kod
RewriteRule ^index.php?a=newsarch$ /newsy/glowna [R]
RewriteRule ^newsy/(.*)$ /index.php?a=newsarch&tryb=$1


Ten post edytował trylik 23.01.2008, 11:39:51
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 - 13:25