簡體   English   中英

htaccess 模式重寫規則在服務器上不起作用

[英]htaccess mode rewrite rule not working on server

我的 htaccess 文件中有一些 url 重寫,它們在本地都可以正常工作,但在服務器上,只有一頁的規則導致了問題(它不起作用)。 這是我的 htaccess 規則

#allStroes
RewriteRule ^allstores?$ allstores.php [L,QSA]
RewriteRule ^allstores/([^/.]+)/?$ allstores.php?type=$1 [L,QSA]
RewriteRule ^allstores/([^/.]+)/([^/.]+)/?$ allstores.php?type=$1&title=$2 [L,QSA]

難道我做錯了什么 ? 請幫忙

您可能忘記添加

RewriteEngine On

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM