.htaccess规则上的重定向不正确

时间:2019-01-15 14:36:47

标签: .htaccess

我正在尝试在我的网站中添加漂亮的url,并编写了一个.htaccess文件。但是,当我尝试访问第二条规则时,它会重定向到第一条规则。其他规则也可以。我尝试了目标url,并且效果完美,并使用在线工具测试了代码,并完美匹配了规则。那么,我在做什么错了?

这是我的代码:

Options +FollowSymLinks
RewriteEngine on
RewriteRule piscinas index.php?seccion=piscinas
RewriteRule natatorios index.php?seccion=natatorios
RewriteRule bordes-atermicos index.php?seccion=bordes
RewriteRule reservorios-industriales index.php?seccion=reservorios
RewriteRule reservorios index.php?seccion=reservorios
RewriteRule tanques-australianos index.php?seccion=reservorios
RewriteRule aguadas index.php?seccion=aguadas

使用该代码,当我转到myurl.com/natatorios时,它将我重定向到index.php?seccion = piscinas而不是index.php?seccion = natatorios

0 个答案:

没有答案
相关问题