Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]mod rewrite, Pierwsze kroki
kamillo121
post
Post #1





Grupa: Zarejestrowani
Postów: 127
Pomógł: 6
Dołączył: 26.07.2009

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


Witam , stawiam w tym temacie pierwsze kroki i napotkałem problem nie do przejścia dla mnie ...
Otóż np tworzę sobie plik .htaccess przy index.php (tak o dla testu narazie ) no i chce żebym mógł się odwołać potem do index.php też przez index.html (tak jak pisało w różnych tutkach ) no i pisze no .
  1. //w .htaccess oczywiscie
  2. Options FollowSymLinks
  3. RewriteEngine On
  4. RewriteRule ^index.html$ index.php [L]

No i nic nie działa tylko BAD REQUEST w krasnalu ..
A przy apache to po prostu "oj ten link wygląda źle " (a w sumie tu i tu apache (IMG:style_emoticons/default/haha.gif) )
Pomoże ktoś zielonemu ? (te linijki z załadowaniem są LoadModule rewrite_module modules/mod_rewrite.so i normalnie nie w komentarzu w pliku konfiguracyjnym )

Ten post edytował kamillo121 31.08.2009, 19:27:43
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
kamillo121
post
Post #2





Grupa: Zarejestrowani
Postów: 127
Pomógł: 6
Dołączył: 26.07.2009

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


Zmieniłem z AllowOverride NONE na all i mam taki błąd ,
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Ten post edytował kamillo121 1.09.2009, 18:47:00
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: 6.12.2025 - 11:48