重写模块启用但得到404错误

时间:2017-05-12 07:51:32

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

我已经启用了重写模块,但在PHP中出现了404错误

我的网站是http://sarkariresultalert.com

获取错误点击任何网址 http://sarkariresultalert.com/2/Employment-News

我正在使用 htaccess的

RewriteEngine On
RewriteRule ^home?$ index.php

RewriteRule ^ ([0-9]+)/ ([a-zA-Z0-9-]+)$ category.php? Id=$1 & category=$2
RewriteRule ^ ([a-zA-Z0-9-]+)/ ([0-9]+)/ ([a-zA-Z0-9-]+)$ post_details.php? cat=1 & postid=$2 & post=$3 [L]

0 个答案:

没有答案