Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [inne]mod_rewrite błąd 500
erjot90
post 6.10.2009, 16:07:15
Post #1





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 19.06.2009
Skąd: Piotrków Tryb

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


Witam mam problem z mod_rewrite
otóż mam serwer WAMP i ostatnio pojawił mi sie błąd 500 internal server error
jak usune plik .htacess to wszystko śmiga a gdy tylko go znów wrzuce to lipa :/
wiecie jak to naprawić?


--------------------
Go to the top of the page
+Quote Post
wookieb
post 6.10.2009, 16:10:51
Post #2





Grupa: Moderatorzy
Postów: 8 989
Pomógł: 1550
Dołączył: 8.08.2008
Skąd: Słupsk/Gdańsk




Poprawić zawartość .htaccess ?


--------------------
Go to the top of the page
+Quote Post
erjot90
post 6.10.2009, 16:20:01
Post #3





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 19.06.2009
Skąd: Piotrków Tryb

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


to ja moze wrzuce zawartosc na forum

http://localhost/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# FORUM ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/limit/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3&limit=$5 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/wyslijZaproszenie/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3&do=wyslij&kogo=$4 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/([a-zA-Z-_0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/limit/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3&limit=$4 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/limit/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&limit=$3 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/?$ forum.php?idK=$1&idPk=$2 [L]
RewriteRule ^forum/([0-9]+)/limit/([0-9]+)/?$ forum.php?id=$1&limit=$2 [L]
RewriteRule ^forum/([0-9]+)/?$ forum.php?idK=$1 [L]
RewriteRule ^forum/?$ forum.php [L]

# START ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^([0-9]+)/?$ index.php?id=$0 [L]
RewriteRule ^wyslane/limit/([0-9]+)/?$ index.php?co=wyslane&limit=$1 [L]
RewriteRule ^limit/([0-9]+)/?$ index.php?limit=$1 [L]
RewriteRule ^wyslane/([0-9]+)/?$ index.php?co=wyslane&do=usun&kogo=$1 [L]
RewriteRule ^wyslane/([0-9]+)/wyslijZaproszenie/([0-9]+)/?$ index.php?co=wyslane&do=wyslij&kogo=$1 [L]
RewriteRule ^wyslane/([0-9]+)/?$ index.php?co=wyslane&do=usun&kogo=$1 [L]
RewriteRule ^wyslane/wyslijZaproszenie/([0-9]+)/?$ index.php?co=wyslane&do=wyslij&kogo=$1 [L]
RewriteRule ^wyslane/?$ index.php?co=wyslane [L]
RewriteRule ^wyslijZaproszenie/([0-9]+)/?$ index.php?do=wyslij&kogo=$1 [L]

# PROFIL ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^profil/([0-9]+)/zapros/?$ profil.php?id=$1&add=ok [L]
RewriteRule ^profil/([0-9]+)/usunFotke/([0-9]+)/?$ profil.php?id=$1&do=usun&id_fotki=$2 [L]
RewriteRule ^profil/([0-9]+)/usunKomentarz/([0-9]+)/?$ profil.php?id=$1&do=usun&id_koment=$2 [L]
RewriteRule ^profil/([0-9]+)/limit/([0-9]+)/?$ profil.php?id=$1&limit=$2 [L]
RewriteRule ^profil/([0-9]+)/?$ profil.php?id=$1 [L]
RewriteRule ^profil/?$ profil.php [L]

# KUMPLE ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^kumple/usunKumpla/([0-9]+)/?$ kumple.php?do=usun&kogo=$1 [L]
RewriteRule ^kumple/([0-9]+)/?$ kumple.php?id=$1 [L]
RewriteRule ^kumple/?$ kumple.php [L]

# WYSLIJ ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyslij/([0-9]+)/?$ wyslij.php?id=$1 [L]

# NAJLEPSI ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^najlepsi/wyslijZaproszenie/([0-9]+)/?$ best.php?do=wyslij&kogo=$1 [L]
RewriteRule ^najlepsi/?$ best.php [L]

# MAPA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^mapa/?$ mapa.php [L]

# SKLEP ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^sklep/?$ sklep.php [L]

# KONTAKT ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^kontakt/?$ kontakt.php [L]

# SZUKAJ ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^szukaj/limit/([0-9]+)/?$ szukaj.php?limit=$1 [L]
RewriteRule ^szukaj/?$ szukaj.php [L]

# POMOC ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^pomoc/?$ pomoc.php [L]

# WYLOGUJ ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyloguj/?$ wylog.php [L]

# KREJZOLE ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^krejzole/online/limit/([0-9]+)/?$ krejzole.php?online=on&limit=$1 [L]
RewriteRule ^krejzole/online/?$ krejzole.php?online=on [L]
RewriteRule ^krejzole/limit/([0-9]+)/?$ krejzole.php?limit=$1 [L]
RewriteRule ^krejzole/?$ krejzole.php [L]

# POCZTA ADMINA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^panelAdmina/pocztaKrejzole/([0-9]+)/usun/?$ pocztaKrejzole.php?id=$1&do=usun [L]
RewriteRule ^panelAdmina/pocztaKrejzole/([0-9]+)/?$ pocztaKrejzole.php?id=$1 [L]
RewriteRule ^panelAdmina/pocztaKrejzole/?$ pocztaKrejzole.php [L]
RewriteRule ^panelAdmina/pocztaLudzie/([0-9]+)/usun/?$ pocztaLudzie.php?id=$1&do=usun [L]
RewriteRule ^panelAdmina/pocztaLudzie/([0-9]+)/?$ pocztaLudzie.php?id=$1 [L]
RewriteRule ^panelAdmina/pocztaLudzie/?$ pocztaLudzie.php [L]
RewriteRule ^panelAdmina/?$ admin.php [L]

# WYSLIJ ADMIN ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyslijAdmin/([0-9]+)/?$ wyslijAdmin.php?id=$1 [L]

# WYSLIJ LUDZIE ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyslijLudzie/([0-9]+)/?$ wyslijLudzie.php?id=$1 [L]

# GALERIA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^galeria/([0-9]+)/([0-9]+)/usun/komentarz/([0-9]+)/?$ galeria.php?id=$1&id_fotki=$2&do=usun&co=komentarz&id_koment=$3
RewriteRule ^galeria/usun/fotke/([0-9]+)/?$ galeria.php?do=usun&co=fotke&id_fotki=$1 [L]
RewriteRule ^galeria/([0-9]+)/([0-9]+)/?$ galeria.php?id=$1&id_fotki=$2 [L]
RewriteRule ^galeria/([0-9]+)/limit/([0-9]+)/?$ galeria.php?id=$1&limit=$2 [L]
RewriteRule ^galeria/([0-9]+)/?$ galeria.php?id=$1 [L]
RewriteRule ^galeria/limit/([0-9]+)/?$ galeria.php?limit=$1 [L]
RewriteRule ^galeria/?$ galeria.php [L]

# USTAWIENIA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^ustawienia/zaawansowane/usun/?$ ustawienia.php?co=zaawansowane&do=usun [L]
RewriteRule ^ustawienia/zaawansowane/?$ ustawienia.php?co=zaawansowane [L]
RewriteRule ^ustawienia/haslo/?$ ustawienia.php?co=haslo [L]
RewriteRule ^ustawienia/?$ ustawienia.php [L]

# POCZTA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^poczta/kosz/([0-9]+)/usun/?$ poczta.php?co=kosz&id=$1&do=usun [L]
RewriteRule ^poczta/kosz/([0-9]+)/?$ poczta.php?co=kosz&id=$1 [L]
RewriteRule ^poczta/kosz/?$ poczta.php?co=kosz [L]
RewriteRule ^poczta/wyslane/([0-9]+)/usun/?$ poczta.php?co=wyslane&id=$1&do=usun [L]
RewriteRule ^poczta/wyslane/([0-9]+)/?$ poczta.php?co=wyslane&id=$1 [L]
RewriteRule ^poczta/wyslane/?$ poczta.php?co=wyslane [L]
RewriteRule ^poczta/([0-9]+)/usun/?$ poczta.php?id=$1&do=usun [L]
RewriteRule ^poczta/([0-9]+)/?$ poczta.php?id=$1 [L]
RewriteRule ^poczta/?$ poczta.php [L]">
RewriteEngine on
DirectoryIndex index.php
RewriteBase http://localhost/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# FORUM ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/([0-9]+)/limit/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3&limit=$5 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/wyslijZaproszenie/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3&do=wyslij&kogo=$4 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/([a-zA-Z-_0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/limit/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3&limit=$4 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&idT=$3 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/limit/([0-9]+)/?$ forum.php?idK=$1&idPk=$2&limit=$3 [L]
RewriteRule ^forum/([0-9]+)/([0-9]+)/?$ forum.php?idK=$1&idPk=$2 [L]
RewriteRule ^forum/([0-9]+)/limit/([0-9]+)/?$ forum.php?id=$1&limit=$2 [L]
RewriteRule ^forum/([0-9]+)/?$ forum.php?idK=$1 [L]
RewriteRule ^forum/?$ forum.php [L]

# START ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^([0-9]+)/?$ index.php?id=$0 [L]
RewriteRule ^wyslane/limit/([0-9]+)/?$ index.php?co=wyslane&limit=$1 [L]
RewriteRule ^limit/([0-9]+)/?$ index.php?limit=$1 [L]
RewriteRule ^wyslane/([0-9]+)/?$ index.php?co=wyslane&do=usun&kogo=$1 [L]
RewriteRule ^wyslane/([0-9]+)/wyslijZaproszenie/([0-9]+)/?$ index.php?co=wyslane&do=wyslij&kogo=$1 [L]
RewriteRule ^wyslane/([0-9]+)/?$ index.php?co=wyslane&do=usun&kogo=$1 [L]
RewriteRule ^wyslane/wyslijZaproszenie/([0-9]+)/?$ index.php?co=wyslane&do=wyslij&kogo=$1 [L]
RewriteRule ^wyslane/?$ index.php?co=wyslane [L]
RewriteRule ^wyslijZaproszenie/([0-9]+)/?$ index.php?do=wyslij&kogo=$1 [L]

# PROFIL ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^profil/([0-9]+)/zapros/?$ profil.php?id=$1&add=ok [L]
RewriteRule ^profil/([0-9]+)/usunFotke/([0-9]+)/?$ profil.php?id=$1&do=usun&id_fotki=$2 [L]
RewriteRule ^profil/([0-9]+)/usunKomentarz/([0-9]+)/?$ profil.php?id=$1&do=usun&id_koment=$2 [L]
RewriteRule ^profil/([0-9]+)/limit/([0-9]+)/?$ profil.php?id=$1&limit=$2 [L]
RewriteRule ^profil/([0-9]+)/?$ profil.php?id=$1 [L]
RewriteRule ^profil/?$ profil.php [L]

# KUMPLE ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^kumple/usunKumpla/([0-9]+)/?$ kumple.php?do=usun&kogo=$1 [L]
RewriteRule ^kumple/([0-9]+)/?$ kumple.php?id=$1 [L]
RewriteRule ^kumple/?$ kumple.php [L]

# WYSLIJ ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyslij/([0-9]+)/?$ wyslij.php?id=$1 [L]

# NAJLEPSI ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^najlepsi/wyslijZaproszenie/([0-9]+)/?$ best.php?do=wyslij&kogo=$1 [L]
RewriteRule ^najlepsi/?$ best.php [L]

# MAPA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^mapa/?$ mapa.php [L]

# SKLEP ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^sklep/?$ sklep.php [L]

# KONTAKT ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^kontakt/?$ kontakt.php [L]

# SZUKAJ ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^szukaj/limit/([0-9]+)/?$ szukaj.php?limit=$1 [L]
RewriteRule ^szukaj/?$ szukaj.php [L]

# POMOC ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^pomoc/?$ pomoc.php [L]

# WYLOGUJ ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyloguj/?$ wylog.php [L]

# KREJZOLE ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^krejzole/online/limit/([0-9]+)/?$ krejzole.php?online=on&limit=$1 [L]
RewriteRule ^krejzole/online/?$ krejzole.php?online=on [L]
RewriteRule ^krejzole/limit/([0-9]+)/?$ krejzole.php?limit=$1 [L]
RewriteRule ^krejzole/?$ krejzole.php [L]

# POCZTA ADMINA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^panelAdmina/pocztaKrejzole/([0-9]+)/usun/?$ pocztaKrejzole.php?id=$1&do=usun [L]
RewriteRule ^panelAdmina/pocztaKrejzole/([0-9]+)/?$ pocztaKrejzole.php?id=$1 [L]
RewriteRule ^panelAdmina/pocztaKrejzole/?$ pocztaKrejzole.php [L]
RewriteRule ^panelAdmina/pocztaLudzie/([0-9]+)/usun/?$ pocztaLudzie.php?id=$1&do=usun [L]
RewriteRule ^panelAdmina/pocztaLudzie/([0-9]+)/?$ pocztaLudzie.php?id=$1 [L]
RewriteRule ^panelAdmina/pocztaLudzie/?$ pocztaLudzie.php [L]
RewriteRule ^panelAdmina/?$ admin.php [L]

# WYSLIJ ADMIN ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyslijAdmin/([0-9]+)/?$ wyslijAdmin.php?id=$1 [L]

# WYSLIJ LUDZIE ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^wyslijLudzie/([0-9]+)/?$ wyslijLudzie.php?id=$1 [L]

# GALERIA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^galeria/([0-9]+)/([0-9]+)/usun/komentarz/([0-9]+)/?$ galeria.php?id=$1&id_fotki=$2&do=usun&co=komentarz&id_koment=$3
RewriteRule ^galeria/usun/fotke/([0-9]+)/?$ galeria.php?do=usun&co=fotke&id_fotki=$1 [L]
RewriteRule ^galeria/([0-9]+)/([0-9]+)/?$ galeria.php?id=$1&id_fotki=$2 [L]
RewriteRule ^galeria/([0-9]+)/limit/([0-9]+)/?$ galeria.php?id=$1&limit=$2 [L]
RewriteRule ^galeria/([0-9]+)/?$ galeria.php?id=$1 [L]
RewriteRule ^galeria/limit/([0-9]+)/?$ galeria.php?limit=$1 [L]
RewriteRule ^galeria/?$ galeria.php [L]

# USTAWIENIA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^ustawienia/zaawansowane/usun/?$ ustawienia.php?co=zaawansowane&do=usun [L]
RewriteRule ^ustawienia/zaawansowane/?$ ustawienia.php?co=zaawansowane [L]
RewriteRule ^ustawienia/haslo/?$ ustawienia.php?co=haslo [L]
RewriteRule ^ustawienia/?$ ustawienia.php [L]

# POCZTA ----------------------------------------------------------------------------------------------------------------------

RewriteRule ^poczta/kosz/([0-9]+)/usun/?$ poczta.php?co=kosz&id=$1&do=usun [L]
RewriteRule ^poczta/kosz/([0-9]+)/?$ poczta.php?co=kosz&id=$1 [L]
RewriteRule ^poczta/kosz/?$ poczta.php?co=kosz [L]
RewriteRule ^poczta/wyslane/([0-9]+)/usun/?$ poczta.php?co=wyslane&id=$1&do=usun [L]
RewriteRule ^poczta/wyslane/([0-9]+)/?$ poczta.php?co=wyslane&id=$1 [L]
RewriteRule ^poczta/wyslane/?$ poczta.php?co=wyslane [L]
RewriteRule ^poczta/([0-9]+)/usun/?$ poczta.php?id=$1&do=usun [L]
RewriteRule ^poczta/([0-9]+)/?$ poczta.php?id=$1 [L]
RewriteRule ^poczta/?$ poczta.php [L]


--------------------
Go to the top of the page
+Quote Post
Fifi209
post 6.10.2009, 16:26:16
Post #4





Grupa: Zarejestrowani
Postów: 4 655
Pomógł: 556
Dołączył: 17.03.2009
Skąd: Katowice

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


To teraz powiedz co za skrypt sobie zainstalowałeś, bo tak szczerze nie chce mi się zgadywać.


--------------------
Zainteresowania: C#, PHP, JS, SQL, AJAX, XML, C dla AVR
Chętnie pomogę, lecz zanim napiszesz: Wujek Google , Manual PHP
Go to the top of the page
+Quote Post
erjot90
post 6.10.2009, 16:30:16
Post #5





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 19.06.2009
Skąd: Piotrków Tryb

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


jak to jaki skrypt??
pisze w php i w tym jest tylko coś źle :/


--------------------
Go to the top of the page
+Quote Post
Fifi209
post 6.10.2009, 16:33:07
Post #6





Grupa: Zarejestrowani
Postów: 4 655
Pomógł: 556
Dołączył: 17.03.2009
Skąd: Katowice

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


Zapytam inaczej, czy pisałeś go sam.

A ze skryptem zapytałem, bo jego rozmiary mnie przeraziły. Moje aplikacjem gdy korzystają z .htaccess zajmują jakieś 5 linii (max)


--------------------
Zainteresowania: C#, PHP, JS, SQL, AJAX, XML, C dla AVR
Chętnie pomogę, lecz zanim napiszesz: Wujek Google , Manual PHP
Go to the top of the page
+Quote Post
mls
post 7.10.2009, 01:54:01
Post #7





Grupa: Zarejestrowani
Postów: 677
Pomógł: 89
Dołączył: 31.08.2003
Skąd: Warszawa

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


Po pierwsze - brak RewriteEngine On na początku pliku.
Po drugie - zrób coś z tymi swoimi skryptami, bo niepotrzebnie zarzynasz poza php jeszcze sam serwer plików (apache czy co tam masz)...
Tak jak wspomniał przedmówca, dobra definicja do mod_rewrite mieści się w kilku linijkach, a resztę robi parser skryptów.


--------------------
Go to the top of the page
+Quote Post
erjot90
post 9.10.2009, 08:45:55
Post #8





Grupa: Zarejestrowani
Postów: 53
Pomógł: 0
Dołączył: 19.06.2009
Skąd: Piotrków Tryb

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


sam wszystko pisałem biggrin.gif
mam RewriteEngine On winksmiley.jpg i nic :/
a jesli to jest za dlugi skrypt to nie wiem jak go inaczej napisac :/ pomożecie?

dobra juz sobie poradziłem

Ten post edytował erjot90 7.10.2009, 08:16:16


--------------------
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 11:10