Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Mod Rewrite] internal server error
peter13135
post
Post #1





Grupa: Zarejestrowani
Postów: 1 447
Pomógł: 191
Dołączył: 26.03.2008

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


Kod
RewriteEngine On
RewriteRule ^([^-]+)$ $1.php  
RewriteRule ^news-([^-]+).html$ index.php?mode=news&id=$1


co tutaj jest źle że serwer wywala internal server error (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)

edit, już sobie poradziłem
trzecią linijkę napisałem tak, zapomniałem dodać poprostu tego html (IMG:http://forum.php.pl/style_emoticons/default/smile.gif)
RewriteRule ^([^-]+).html$ $1.php

Ten post edytował peter13135 24.03.2009, 21:23:57
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 1)
Maxik
post
Post #2





Grupa: Zarejestrowani
Postów: 726
Pomógł: 129
Dołączył: 10.01.2008
Skąd: Gdańsk

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


Przed kropką w regexpie musi być \ jeśli nie chcesz aby było to traktowane jako dowolny znak.
Go to the top of the page
+Quote Post

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: 22.08.2025 - 16:39