空参数显示错误404 .htaccess

时间:2018-05-02 12:07:22

标签: .htaccess

https://northbengaltourism.com/hotel-details/sikkim/lachung/NBTH0329/正常使用:

<button type="submit" form="firstForm" value="Submit">Submit</button>

在htaccess中。但是当缺少两个中间参数时,页面显示:

RewriteRule ^hotel-details/?(.*)/(.*)/([^/]*)/$ hotel-details.php?hotdest=$1&hotcity=$2&hotelid=$3

我尝试Error 404 (Not Found). https://northbengaltourism.com/hotel-details///NBTH0329/取代([^/]*),但没有运气。请帮我解决这个问题。

0 个答案:

没有答案