Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> htaccess i Internal Server Error
qbatoja
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 3.05.2005

Ostrzeżenie: (10%)
X----


czesc
w pliku .htaccess mam:
CODE
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?route=$1 [L,QSA]

AddType application/x-httpd-php5 .php .php4 .php3 .php5


i jak odpalam strone to mam Internal Server Error
what's up?
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 3)
seaquest
post
Post #2





Grupa: Przyjaciele php.pl
Postów: 790
Pomógł: 7
Dołączył: 6.02.2003
Skąd: Polska

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


Sprawdź w logach!


--------------------
Michał Płachta
Warsztat: Mac OS X Leopard, PostgreSQL, Text Mate, Retrospectiva + SVN
Go to the top of the page
+Quote Post
qbatoja
post
Post #3





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 3.05.2005

Ostrzeżenie: (10%)
X----


no wlasnie lipa.
na localhoscie jak testuje, to mi po dodaniu tych linijek (omiajjac wymuszenie php 5) poprostu nie startuje apache. jedyne co mam w error.log yo:
CODE
[Tue Dec 11 20:43:18 2007] [notice] Parent: Received restart signal -- Restarting the server.
[Tue Dec 11 20:43:18 2007] [notice] Child 1560: Exit event signaled. Child process is ending.
[Tue Dec 11 20:43:19 2007] [notice] Child 1560: Released the start mutex
[Tue Dec 11 20:43:25 2007] [notice] Child 1560: Waiting for 250 worker threads to exit.
[Tue Dec 11 20:43:25 2007] [notice] Child 1560: All worker threads have exited.
[Tue Dec 11 20:43:25 2007] [notice] Child 1560: Child process is exiting
Go to the top of the page
+Quote Post
KaweS
post
Post #4





Grupa: Zarejestrowani
Postów: 8
Pomógł: 0
Dołączył: 18.06.2005
Skąd: London

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


ja tam sie nie znam zbytnio na konfiguracji Apache'a, ale wiem, ze moje rozwiazanie, choc nie jest profesjonalne, dziala bez problemu:

konfiguracja apache'a:
Kod
ErrorDocument 404 "/index.php?e=404"


plik index.php:
  1. <?php
  2. if ($_SERVER['QUERY_STRING'] == 'e=404')
  3. echo 'ERROR 404<br />nie mozna odnalezc ' . $_SERVER['REQUEST_URI'];
  4. ?>


pozdro ;]

//EDIT: dla niewtajemniczonych dodam, ze w polu adresu wyswietlany jest adres, jaki podalismy [przynajmniej w ff2, ie7 i o9]

Ten post edytował KaweS 12.12.2007, 00:54:54


--------------------
pozdrawiam
KaweS
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: 21.08.2025 - 18:40