使用htaccess重定向无法正常工作

时间:2014-01-02 17:29:03

标签: apache .htaccess mod-rewrite url-rewriting

这是我网页的网址

http://m.appricart.com/items.php?bcid=1&page=2

和.htacess页面是:

RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)$ items.php?bcid=$1&page=$2
RewriteRule ^([a-zA-Z0-9_-]+)/([0-9]+)/$ items.php?bcid=$1&page=$2

但问题是,如果我使用网址

http://appricart.com/mobile/1/2

它有效,但如果我使用

http://m.appricart.com/1/2

它显示错误如下:

The requested URL /mobile/mobile/items.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

与此相关的帮助...将会感激...      任何网站管理员都帮我?我很沮丧..

0 个答案:

没有答案