![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 873 Pomógł: 25 Dołączył: 24.07.2005 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
używam WAMP Server. W pliku httpd.conf odkomentowałem linijkę LoadModule rewrite_module modules/mod_rewrite.so plik .htaccess wyglada tak Options FollowSymLinks RewriteEngine On RewriteRule ^index.html$ index.php [L] # This folder does not require access over HTTP # (the following directive denies access by default) Order allow,deny i teraz test adresu w przegladarce 127.0.0.1/oop/index.php nie zamienia się na index.html co robię nie tak? pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 726 Pomógł: 129 Dołączył: 10.01.2008 Skąd: Gdańsk Ostrzeżenie: (0%) ![]() ![]() |
Nie przekieruje Cię automatycznie! To co miałeś na początku było dobrze, jeśli wywołałbyś http://127.0.0.1/oop/index.html zobaczyłbyś wynik skryptu index.php.
Po RewriteRule ^index\.html$ index.php [L] dodaj RewriteRule ^index.php$ index.html [R=301, L] dzięki fladze L nie powinno się zapętlać. Ten post edytował Maxik 21.05.2009, 19:13:25 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 22.08.2025 - 14:41 |