I need to rewrite the url from to or 重写为或
can any body suggest me how to implement the rewrite code in .htaccess file.
Thanks in advance.
Try adding the following to /root/.htaccess :
RewriteEngine on
#--Redirect from "www.example.com/index.php?store=test"--#
RewriteCond %{HTTP_HOST} ^(www\.)?example\.com$
RewriteCond %{THE_REQUEST} /index\.php\?store=test [NC]
#--to "store.example.com"--#
RewriteRule ^ http://store.example.com [L,R]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.