![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 38 Pomógł: 3 Dołączył: 4.12.2010 Ostrzeżenie: (0%) ![]() ![]() |
Witam
Mam problemy z przekierowaniem z http://localhost/index.php na podstronę http://localhost/index.php?id=main . Używałem wielu kombinacji: .htaccess Kod Redirect permanent http://localhost/index.php http://localhost/index.php?id=main meta Kod <META HTTP-EQUIV=Refresh CONTENT=?0; URL=http://localhost/index.php?id=main?> działa lecz mam nieskończoną pętle odświeżania strony. php Kod <? header("HTTP/1.1 301 Moved Permanently"); header("Location: http://localhost/index.php?id=main"); header("Connection: close"); ?> Kurcze już mnie się pomysły kończą i odwiedzane strony. Proszę o jakieś nakierowanie lub podpowiedz. Z góry dziękuje Ten post edytował jerry1984 15.05.2011, 12:44:18 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 1 366 Pomógł: 261 Dołączył: 23.09.2008 Skąd: Bydgoszcz Ostrzeżenie: (0%) ![]() ![]() |
to zrób z rewritem ...
Cytat RewriteEngine On
RewriteRule index.php$ /index.php?id=main [NC,L] |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 38 Pomógł: 3 Dołączył: 4.12.2010 Ostrzeżenie: (0%) ![]() ![]() |
Również nie działa, a robię tak:
Kod RewriteEngine On RewriteRule http://localhost/index.php$ /http://localhost/index.php?id=main [NC,L] wiec jak widzisz, oporny jest (IMG:style_emoticons/default/sciana.gif) już 3h mija, a ja siedzę z tym durnym problemem. |
|
|
![]() ![]() |
![]() |
Aktualny czas: 4.10.2025 - 10:09 |