.htaccess 重写标志[L]不起作用
这是我的.htaccess文件,我只想将页面从一个url重写到另一个url。但它移动了404页.htaccess 重写标志[L]不起作用,.htaccess,.htaccess,这是我的.htaccess文件,我只想将页面从一个url重写到另一个url。但它移动了404页 RewriteEngine On Options +FollowSymLinks RewriteBase / RewriteRule ^([^/]+)/article/([^/]+)$ /index.php?option=com_vendorsearch&view=article&title=$2 [L] RewriteRule ^([^/]+)/polls/([^/]+)$ /ind
RewriteEngine On
Options +FollowSymLinks
RewriteBase /
RewriteRule ^([^/]+)/article/([^/]+)$ /index.php?option=com_vendorsearch&view=article&title=$2 [L]
RewriteRule ^([^/]+)/polls/([^/]+)$ /index.php?option=com_vendorsearch&view=polls&id=$2 [L]
RewriteRule ^([^/]+)/coupons/([^/]+)$ /index.php?option=com_vendorsearch&view=coupons&id=$2 [L]
RewriteRule ^([^/]+)/images/([^/]+)$ /index.php?option=com_vendorsearch&view=images&id=$2 [L]
RewriteRule ^([^/]+)/videos/([^/]+)$ /index.php?option=com_vendorsearch&view=videos&id=$2 [L]
可能您需要的第一条规则如下:
RewriteRule ^[^/]+/articles/([^/]+)/?$ /index.php?option=com_vendorsearch&view=article&title=$1 [L,QSA,NC]
您要移动的文件名是什么?您要将其指向的url是什么?您尝试了什么,因为您似乎只是向我们显示完整的.htacceess文件。@miah实际上我为vendorsearch组件创建了一些视图。我想将这些视图的url显示为www.example.com/qwerty/articles/article-title。