.htaccess的。 RewriteRule如何优先于RewriteRule index.php

时间:2017-04-12 03:31:57

标签: php apache .htaccess mod-rewrite

我添加了[L]但是apache总是首先运行index.php。无论如何可以解决这个问题?

Options +FollowSymLinks

IndexIgnore */*
ErrorDocument 404   "error404"

RewriteEngine On
RewriteBase /

RewriteRule   ^/([0-9]+)WEB([0-9]+)$  /order?c=$1WEB$2 [L] <- i want run this first

RewriteRule . index.php <- apache always run this

0 个答案:

没有答案