Jump to content
GIGN Forum

500 Internal Server Error


aaE
 Share

Recommended Posts

Uzliku webu, visu ievadīju kā vajag bet neiet. Kā salabot?

No .httacces

ErrorDocument 404 /404.php

RewriteEngine On

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

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

RewriteRule ^news/([0-9]*)/page/([0-9]*)$ news.php?id=$1&p=$2 [L]

RewriteRule ^news/([0-9]*)/page/([0-9]*)/$ news.php?id=$1&p=$2 [L]

RewriteRule ^news/page/([0-9]*)$ index.php?p=$1 [L]

RewriteRule ^news/page/([0-9]*)/$ index.php?p=$1 [L]

RewriteRule ^news/add$ nnews.php [L]

RewriteRule ^news/add/$ nnews.php [L]

RewriteRule ^login$ login.php [L]

RewriteRule ^login/$ login.php [L]

RewriteRule ^logout$ logout.php [L]

RewriteRule ^logout/$ logout.php [L]

RewriteRule ^admin/panel$ admin.php [L]

RewriteRule ^admin/panel/$ admin.php [L]

RewriteRule ^timer/([a-zA-Z0-9]*) includes/$1.inc.php [L]

RewriteRule ^user/([0-9]*)$ vuser.php?id=$1 [L]

RewriteRule ^user/([0-9]*)/$ vuser.php?id=$1 [L]

RewriteRule ^users$ users.php [L]

RewriteRule ^users/$ users.php [L]

RewriteRule ^users/page/([0-9]*)$ users.php?p=$1 [L]

RewriteRule ^users/page/([0-9]*)/$ users.php?p=$1 [L]

RewriteRule ^rating/([0-9]*)/([a-zA-Z]*)$ rating.php?id=$1&type=$2 [L]

RewriteRule ^rating/([0-9]*)/([a-zA-Z]*)/$ rating.php?id=$1&type=$2 [L]

RewriteRule ^videos$ videos.php [L]

RewriteRule ^videos/$ videos.php [L]

RewriteRule ^videos/page/([0-9]*)$ videos.php?p=$1 [L]

RewriteRule ^videos/page/([0-9]*)/$ videos.php?p=$1 [L]

RewriteRule ^videos/$ videos.php [L]

RewriteRule ^video/([0-9]*)$ vvideo.php?id=$1 [L]

RewriteRule ^video/([0-9]*)/$ vvideo.php?id=$1 [L]

RewriteRule ^video/add$ nvideo.php [L]

RewriteRule ^video/add/$ nvideo.php [L]

RewriteCond %{HTTP_HOST} .

RewriteCond %{HTTP_HOST} !^www\.vārds\.lv

RewriteRule (.*) http://www.vārds.lv/$1 [R=301,L]

Link to comment
Share on other sites

btw manuprāt ir slikts stils taisīt dažādus .php failus un redirektēt uz viņiem... labāk ir taisīt visu caur index.php, kur tiek vispirms jau izveidota datubāzes konekcija un uzstādīti visādi mainīgie... un pēctam attiecīgi no šī paša faila taisīt includes uz ārējiem failiem

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...