|
![]() |
#1 |
Bazinga
Datum registracije: Sep 2008
Lokacija: Osijek
Postovi: 224
|
RewriteEngine i Error stranice
Pozdrav! Naime, konfigurirao sam .htaccess file na sljedeci nacin: Code:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.php [L,QSA] ErrorDocument 404 /errors/404.php ErrorDocument 500 /errors/500.php Medjutim, kada upisem neku krivu adresu ne izbacuje mi moje customizirane error stranice nego mi izbacuje standardnu Internal server error: Code:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. Problem je riješen sljedećim kodom u .htaccess file-u: Code:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php [L,QSA] ErrorDocument 404 /404.php ErrorDocument 500 /404.php Zadnje izmijenjeno od: mbozick1. 22.05.2012. u 08:47. Razlog: Riješeno |
![]() |
![]() |
|
|
Oglas
|
Oglasni prostor
|
![]() |
|
|