Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> .htaccess, Mały problem z .htaccess i błąd stron 500
DenVer89
post 13.07.2007, 22:29:50
Post #1





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 13.07.2007

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


Witam
mam taki plik .htaccess z taką zawartością:



AddHandler php5-fastcgi php
Action php5-fastcgi /fcgi-bin5/php5
AddHandler application/x-httpd-php5 php

RewriteEngine On

RewriteCond %{HTTP_HOST} ^strefax.pl
RewriteRule (.*) http://www.strefax.pl/$1 [R=301,L]
RewriteRule ^news\.html$ index.php?page=news&go=news [L]
RewriteRule ^blog\.html$ index.php?page=blog&go=blog [L]
RewriteRule ^ksiegagosci\.html$ index.php?page=ksiegagosci&go=ksiegagosci [L]
RewriteRule ^ksiegagosci,dodaj\.html$ index.php?page=ksiegagosci&go=dodaj [L]
RewriteRule ^([a-zA-Z]+)\.html$ index.php?page=$1 [L]
RewriteRule ^([a-zA-Z]+),([a-zA-Z]+)\.html$ index.php?page=$1&akcja=$2 [L]
RewriteRule ^([a-zA-Z]+),([a-zA-Z]+),([1-9])\.html$ index.php?page=$1&go=$2&id=$3 [L]
RewriteRule ^([a-zA-Z]+),addclick,([a-zA-Z]+),([a-zA-Z\/:.]+)/?$ index.php?page=$1&add_click=$2&adres=$3 [L]





i coś w tym pliku jest nie tak nie działa mi strona bo wyskakuje błąd 500 wewnętrzny błąd serwera a to przez ten plik co w nim jest źle questionmark.gif

Ten post edytował DenVer89 14.07.2007, 09:33:37
Go to the top of the page
+Quote Post
Daimos
post 13.07.2007, 23:42:20
Post #2





Grupa: Zarejestrowani
Postów: 1 319
Pomógł: 118
Dołączył: 26.11.2003
Skąd: Lublin

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


chyba nie to forum
zamien ta linijke:
Kod
RewriteRule (.*) <a href="http://www.strefax.pl/$1\" target=\"_blank\">http://www.strefax.pl/$1</a> [R=301,L]
na
Kod
RewriteRule ^(.*)$ <a href="http://www.strefax.pl/$1\" target=\"_blank\">http://www.strefax.pl/$1</a> [R=301,L]


--------------------
scriptun.com. Startup z poradnikami do gier ttp.zone i ttpzone.pl
Go to the top of the page
+Quote Post
DenVer89
post 14.07.2007, 09:29:34
Post #3





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 13.07.2007

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


sorry ale wyzej coś nie tak wklejiłem plik tak wygląda prawidłowo:







AddHandler php5-fastcgi php
Action php5-fastcgi /fcgi-bin5/php5
AddHandler application/x-httpd-php5 php

RewriteEngine On

RewriteCond %{HTTP_HOST} ^strefax.pl
RewriteRule (.*) http://www.strefax.pl/$1 [R=301,L]
RewriteRule ^news\.html$ index.php?page=news&go=news [L]
RewriteRule ^blog\.html$ index.php?page=blog&go=blog [L]
RewriteRule ^ksiegagosci\.html$ index.php?page=ksiegagosci&go=ksiegagosci [L]
RewriteRule ^ksiegagosci,dodaj\.html$ index.php?page=ksiegagosci&go=dodaj [L]
RewriteRule ^([a-zA-Z]+)\.html$ index.php?page=$1 [L]
RewriteRule ^([a-zA-Z]+),([a-zA-Z]+)\.html$ index.php?page=$1&akcja=$2 [L]
RewriteRule ^([a-zA-Z]+),([a-zA-Z]+),([1-9])\.html$ index.php?page=$1&go=$2&id=$3 [L]
RewriteRule ^([a-zA-Z]+),addclick,([a-zA-Z]+),([a-zA-Z\/:.]+)/?$ index.php?page=$1&add_click=$2&adres=$3 [L]

Ten post edytował DenVer89 14.07.2007, 09:34:17
Go to the top of the page
+Quote Post
delfinium
post 14.07.2007, 09:41:22
Post #4





Grupa: Zarejestrowani
Postów: 90
Pomógł: 6
Dołączył: 30.06.2007
Skąd: Zielona Góra

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


Hmm, przekopiowałem sobie Twój kod i u mnie działa bez problemu. Sprawdź dokładnie htaccess czy gdzieś się czasem nie pojawił się jakiś zabłąkana literka czy znak sterujący. A jeśli nie to usuwaj poszczególne linie i wtedy będziesz wiedział na której się serwer wywala.
Go to the top of the page
+Quote Post
DenVer89
post 14.07.2007, 13:16:00
Post #5





Grupa: Zarejestrowani
Postów: 34
Pomógł: 0
Dołączył: 13.07.2007

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


problem tkwi w tym:

AddHandler php5-fastcgi php
Action php5-fastcgi /fcgi-bin5/php5
AddHandler application/x-httpd-php5 php
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: 30.07.2025 - 07:54