Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]modRule - nie działa
rcdcd
post
Post #1





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 19.04.2008

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


naczytałem się o mod rwerite, w pliku .htaccess w katalogu umiescilem

Kod
RewriteEngine On
RewriteRule ^ogloszenia-([^-]+).html$ogloszenia.php?id=$1


i

serwer głupieje ... dostaje:

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

Please contact the server administrator, postmaster 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.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
rcdcd
post
Post #2





Grupa: Zarejestrowani
Postów: 22
Pomógł: 0
Dołączył: 19.04.2008

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


dzieki (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)

kolejny problem

generuje link:

Cytat
<a href="./ogloszenia-2.html">wwwwww</a>


plik htaccess j.w.

i dostaję:

Kod
Bad Request
Your browser sent a request that this server could not understand.

Invalid URI in request GET /~stw/ogloszenia/ogloszenia-2.html HTTP/1.1


Ten post edytował rcdcd 12.04.2009, 18:56:15
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: 28.09.2025 - 21:20