0

I have this code:

RewriteEngine On
RewriteBase /

RewriteRule ^folder$ fd?id=190 [PT,L,QSA]

but it doesn't redirect correctly.

I get a file not found error.

If I write like this:

RewriteEngine On
RewriteBase /

#RewriteMap keys txt:http://5000franquicias.com/API/frId/getlist   

#RewriteRule ^(.*)$ fd?id=${keys:$1|0}

RewriteRule ^montelana$ fd?id=190 [R=301,L,QSA]

changing the flag PT to R=301 it works, but I want the redirecting to be made silently.

4

1 回答 1

0

为什么需要PT。只需使用这个:

RewriteRule ^folder$ fd?id=190 [NC,L,QSA]
于 2013-09-26T16:55:46.747 回答