访问我的网站的子文件夹时出现404错误

时间:2017-09-08 08:18:45

标签: php .htaccess mod-rewrite http-status-code-404

我正在运行网站http://dudesrgamerz.com并在访问我的网站的子文件夹时遇到404错误(我在名为/apps/的子文件夹中运行第二个脚本)。 /apps/index.php工作正常但访问/apps/detail/zello-ptt-walkie-talkie?appid=com.loudtalks时却无法正常工作;它返回404错误页面。

以下是.htaccess

<IfModule mod_rewrite.c>
## Uncomment (remove # ONLY NOT ##) line below if installed in folder and add folder name after /
## Example: Script is installed in /public_html/folder/ then it should be: Rewritebase /folder/
## Then the files below should be (add slash to all): /index.php?action=$1
## Uncomment the code below to Use PHP 5.4
# AddHandler application/x-httpd-php54 .php

RewriteEngine On

## Uncomment the following line to use the multi-domain feature
# RewriteCond %{HTTP_HOST} ^yourseconddomain\.com$ [NC]
# RewriteRule ^(.*)$ http://yourfirstdomain.com/$1 [R=301,L]

#Rewritebase /
## Admin Panel
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^admin/(.*)?$ admin/index.php?a=$1 [QSA,NC,L]

## Application Handler
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)?$ index.php?a=$1  [QSA,NC,L]
</IfModule>

## Error 404 ##
ErrorDocument 404 /index.php?a=404

0 个答案:

没有答案