![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 65 Pomógł: 0 Dołączył: 8.11.2006 Skąd: Kanagawa-ken, Japonia Ostrzeżenie: (10%) ![]() ![]() |
Mam .htaccess
Cytat RewriteEngine On RewriteRule ^GameEngine.da$ index.php RewriteRule ^GameEngine.da?([a-zA-Z]+)/$ index.php?page=$1 Ale nie działa druga reguła, tj. gdy wejde na GameEngine.da?Login to nie wchodzi index.php?page=Login ... panel loginu sie nie wyswietla. Jak to naprawic ? |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 33 Pomógł: 3 Dołączył: 29.01.2008 Ostrzeżenie: (0%) ![]() ![]() |
moze tak
Cytat RewriteRule ^GameEngine.da?([a-zA-Z]+)$ index.php?page=$1
-------------------- if the specifications are absolutely ambiguous, every program will satisfy them
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 65 Pomógł: 0 Dołączył: 8.11.2006 Skąd: Kanagawa-ken, Japonia Ostrzeżenie: (10%) ![]() ![]() |
Nic z tego.
Zeby nie bylo, kod wyglada tak (w index.php): Cytat <? $file = trim($_GET['page']); $dest = 'gfx/'.$file.'_panel.php'; if (@!fopen($dest, 'r')) { die("Cannot open ".$dest); } else { include($dest); } ?> Tylko, ze teraz nawet przy "GameEngine.da" wyskakuje "Cannot open _panel.php". |
|
|
-Gość- |
![]()
Post
#4
|
Goście ![]() |
spróbuj tak:
RewriteRule ^GameEngine.da\?([a-zA-Z]+)/$ index.php?page=$1 |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 65 Pomógł: 0 Dołączył: 8.11.2006 Skąd: Kanagawa-ken, Japonia Ostrzeżenie: (10%) ![]() ![]() |
Dalej to samo... wydaje sie, ze to cięższe niż przypuszczalem ; o
|
|
|
-Gość- |
![]()
Post
#6
|
Goście ![]() |
To spróbuj to zrobić tak:
Kod RewriteEngine On
RewriteCond %{Query_String} ^([a-zA-Z]+)$ RewriteRule ^GameEngine.da index.php?page=%1 [L] RewriteRule ^GameEngine.da$ index.php [L] |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 08:55 |