Mod Rewrite - kolejny problem
sq8bgq - 22-02-2010 08:40
Mod Rewrite - kolejny problem
Witam
Mam kolejny problem z Mod Rewrite:
RewriteRule ^([english,216]+)$ http://test.rozenek.com [R]
Jesli wpisze www.rozenek.com/english,216 - przekierowuje na
test.rozenek.com - co jest ok
natomiast
przekierowuje takze adres www.rozenek.com/english,2 - jak na to
zaradzic, aby regula bylo dokladnie spelniona?
Pozdrawiam
Pawel
sq8bgq - 22-02-2010 08:40
On 12 Lut, 13:33, sq8bgq <sq8...@bronowice.net> wrote:
> Witam
>
> Mam kolejny problem z Mod Rewrite:
>
> RewriteRule ^([english,216]+)$http://test.rozenek.com[R]
>
> Jesli wpiszewww.rozenek.com/english,216- przekierowuje na
> test.rozenek.com - co jest ok
>
> natomiast
>
> przekierowuje takze adreswww.rozenek.com/english,2- jak na to
> zaradzic, aby regula bylo dokladnie spelniona?
>
OK, poradzilem sobie:
RewriteRule ^([english,216]{11})$ http://test.rozenek.com [R]
:-)))
Ane - 22-02-2010 08:40
W dniu 2010-02-12 14:44, sq8bgq pisze:
> OK, poradzilem sobie:
>
>
> RewriteRule ^([english,216]{11})$ http://test.rozenek.com [R]
No to sprawd¼ www.rozenek.com/eeeeeeeeeee
Chuck - 22-02-2010 08:40
2010-02-12 15:12, Ane napisa³(a):
> W dniu 2010-02-12 14:44, sq8bgq pisze:
>> OK, poradzilem sobie:
>>
>>
>> RewriteRule ^([english,216]{11})$ http://test.rozenek.com [R]
>
> No to sprawd¼ www.rozenek.com/eeeeeeeeeee
....a pó¼niej poczytaj podstawy nt. wyra¿eñ regularnych (regular
expressions, regex...)
--
CZAK
sq8bgq - 22-02-2010 08:40
> > No to sprawdwww.rozenek.com/eeeeeeeeeee
>
> ...a p niej poczytaj podstawy nt. wyra e regularnych (regular
> expressions, regex...)
>
> --
> CZAK
Witam i dziekuje za odpowiedzi.
Hm... Nie wiem co napisac. W trakcie normalnego uzywania strony z cala
pewnoscia nie dojdzie do sytuacji jak powyzej. Jesli ktos zacznie sie
wyglupiac i wklejac dziwne url'e - nic nie osiagnie oprocz
nieprawidlowego wyswietlania strony.
Patrzac od strony profesjonalnej - zgadza sie - nie jest to zrobione
profesjonalnie.
Reasumujac - jakbym byl geniuszem www, to bym sie tu nie pytal - ale
oczywiscie uwagi biore do serca - dziekuje za nie :-) Nie mozna
wszystkiego na raz osiagnac przeciez :-)
Pozdrawiam
Pawel
sq8bgq - 22-02-2010 08:40
> Patrzac od strony profesjonalnej - zgadza sie - nie jest to zrobione
> profesjonalnie.
No dobrze, bylo calkiem do d...
moze tak? :-)
RewriteRule ^(english){1},(216){1}$ http://helpthem.rozenek.com [R]
Nie moge znalezc tym razem bledu ;P
Pozdrawiam
Pawel
Pacio - 22-02-2010 08:40
Uzytkownik "sq8bgq" <sq8bgq@bronowice.net> napisal w wiadomosci
news:5a261362-b5d8-4b8a-bb32-2c35b7182849@f15g2000yqe.googlegroups.com...
> No dobrze, bylo calkiem do d...
> moze tak? :-)
> RewriteRule ^(english){1},(216){1}$ http://helpthem.rozenek.com [R]
> Nie moge znalezc tym razem bledu ;P
Poczytaj troche na temat wyrazen regularnych, do czego sluza konkretne
nawiasy i czy w tym przypadku w ogole sa potrzebne:
RewriteRule ^english,216$ http://helpthem.rozenek.com [R]
--
Pozdrawiam
Pacio
sq8bgq - 22-02-2010 08:41
> Poczytaj troche na temat wyrazen regularnych, do czego sluza konkretne
> nawiasy i czy w tym przypadku w ogole sa potrzebne:
>
> RewriteRule ^english,216$http://helpthem.rozenek.com[R]
>
Dokladnie, masz racje, dziekuje - zastosowalem :-)