简体   繁体   English

将首页重定向到特定的子目录

[英]Redirect homepage to specific subdirectory

I have a wordpress site and I need to redirect the homepage " http://members.slateadvisers.com/ " 我有一个wordpress网站,我需要重定向主页“ http://members.slateadvisers.com/

to the registration page 到注册页面

" http://members.slateadvisers.com/?action=registeruser&subscription=1 " http://members.slateadvisers.com/?action=registeruser&subscription=1

How can I do this with htaccess? 我如何用htaccess做到这一点?

Insert this rule on top of all the rules just below RewriteBase line: 将此规则插入RewriteBase行下面的所有规则RewriteBase

RewriteCond %{HTTP_HOST} ^members\.slateadvisers\.com$ [NC]
RewriteRule ^$ ?action=registeruser&subscription=1 [L,R=301]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM