Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [inne]mod rewrite
daros17
post
Post #1





Grupa: Zarejestrowani
Postów: 233
Pomógł: 27
Dołączył: 27.08.2007

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


Czesc,

mam taki problem

podstrony wygladaja tak:
index.php?pokaz=o-mnie
index.php?pokaz=galeria itp

w .htaccess dałem takie regułki:
Options FollowSymLinks
RewriteEngine On
RewriteRule ^omnie(.*).php$ index.php?pokaz=$o-mnie [NC]

i po wejściu na główną lub podstronę wywala błąd error 500 , jest tutaj jakiś błąd?

Ten post edytował daros17 13.05.2011, 13:10:15
Go to the top of the page
+Quote Post
pifarek
post
Post #2





Grupa: Zarejestrowani
Postów: 91
Pomógł: 15
Dołączył: 3.03.2009
Skąd: Włocławek

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


jak chcesz mieć adres nazwa.pl/omnie

to powinno być np. tak:
  1. RewriteRule ^omnie$ index.php?pokaz=o-mnie


--------------------
www.swiths.com
Go to the top of the page
+Quote Post
daros17
post
Post #3





Grupa: Zarejestrowani
Postów: 233
Pomógł: 27
Dołączył: 27.08.2007

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


zrobiłem tak jak napisales, w menu poprawiłem link na adres.pl/o-mnie i wyskakuje blad 500 internal server

edit// jak dodam np takie regułki:

Options FollowSymLinks
RewriteEngine On
RewriteRule ^index.html$ index.php [L]

to również wywala error internal server

Ten post edytował daros17 13.05.2011, 13:41:38
Go to the top of the page
+Quote Post
matino
post
Post #4





Grupa: Zarejestrowani
Postów: 175
Pomógł: 30
Dołączył: 9.08.2007

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


Spróbuj podać pełną ścieżkę w drugim argumencie:
RewriteRule ^index$ /ścieżka do index.php/index.php
Go to the top of the page
+Quote Post
daros17
post
Post #5





Grupa: Zarejestrowani
Postów: 233
Pomógł: 27
Dołączył: 27.08.2007

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


Usunąłem Options FollowSymLinks i śmiga dzięki wszystkim wink.gif
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 22.08.2025 - 10:48