![]() |
![]() ![]() |
![]() |
![]()
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 ![]() Ten post edytował DenVer89 14.07.2007, 09:33:37 |
|
|
![]()
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] naKod 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
|
|
|
![]()
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 |
|
|
![]()
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.
|
|
|
![]()
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 |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 30.07.2025 - 07:54 |