内部服务器错误当我尝试访问管理员URL时(主页工作正常)

时间:2013-01-03 11:10:09

标签: php .htaccess

我正在研究.htaccess文件,并且前端很好。但是当我尝试访问admin时,它会给我内部服务器错误。它是一个客户mvc框架。

这是我的.htacess文件

DirectoryIndex index.php

Options -Indexes

Options +FollowSymlinks
Options -MultiViews
ErrorDocument 404 /sitemap.php
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^vividtron.demolocation.com [NC]

RewriteRule ^index.htm$ /index.php [NC]
RewriteRule ^all-category.htm$ /all-category.php [NC]
RewriteRule ^brands.htm$ /brands.php [NC]
RewriteRule ^search.htm$ /search.php [NC]

RewriteRule ^([_-a-zA-Z0-9]+)$ /sub-category.php?furl=$1 [NC]
RewriteRule ^customer-service.htm$ /customer-service.php [NC]
RewriteRule ^([_-a-zA-Z0-9]+).htm$    /static-page.php?furl=$1 [NC] 
RewriteRule ^offer/([_-a-zA-Z0-9]+).htm$    /special-offer.php?furl=$1 [NC]
RewriteRule ^pages/([_-a-zA-Z0-9]+).htm$    /popup-pages.php?furl=$1 [NC]

#RewriteRule ^category/([_-a-zA-Z0-9]+)$ /product-listing.php?surl=$1 [NC]
RewriteRule ^category/([_-a-zA-Z0-9]+)$ /featured-product.php?surl=$1 [NC]
RewriteRule ^brand/([_-a-zA-Z0-9]+)$ /product-series.php?burl=$1 [NC]
RewriteRule ^series/([_-a-zA-Z0-9]+)/([_-a-zA-Z0-9]+)$ /model-listing.php?burl=$1&surl=$2 [NC]
RewriteRule ^product/([a-zA-Z0-9_-]+)$ /product-detail.php?furl=$1 [NC]
RewriteRule ^([._-a-zA-Z0-9]+)/([_-a-zA-Z0-9]+)/([_-a-zA-Z0-9]+)$ /pro-detail.php?url=$1&proId=$2&bid=$3 [NC]
RewriteRule ^([._-a-zA-Z0-9]+)/([_-a-zA-Z0-9]+)$ /pro-detail.php?url=$1&proId=$2 [NC]

谢谢你的进步。请查看文件为什么网址http://vividtron.demolocation.com/admin/login.php无效

1 个答案:

答案 0 :(得分:0)

您尝试过不同的主机吗?我的一个脚本总是向我显示内部服务器错误,但当我切换主机时,它运行完美。