[英]site load more time in url rewrite using .htaccess file
Hi I am new to url rewrite help in this process. 嗨,我是这个过程中URL重写帮助的新手。
Actually I want to rewrite my url from : 实际上,我想从以下位置重写我的网址:
http://abcd.com/merchant.php?store=2&area=323&storename=Vendor-2
to 至
http://abcd.com/Vendor-2
But it's not working. 但这不起作用。 When I click on href target that time it is loading.
当我单击href目标时,它正在加载。 Below is my
.htaccess
file 以下是我的
.htaccess
文件
Options +FollowSymLinks -MultiViews
# Turn mod_rewrite on
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L,QSA]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s(.*)/index\.php [NC]
RewriteRule ^ /%1 [R=301,L]
RewriteRule ^([^/]*)\.html$ /merchant\.php?store=1&area=132&storename=$1 [L]
Above file is my .htaccess
file but it's not working. 上面的文件是我的
.htaccess
文件,但无法正常工作。
Can somebody give me a suggestion? 有人可以给我一个建议吗?
# This should match when storename contains [a-zA-Z0-9_-]
RewriteCond %{QUERY_STRING} storename=([\w-]+)
RewriteRule merchant.php /%1 [R=301,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.