[英]How can i redirect my url to specific page when user access admin
1.i want to redirect my site to mysite.com/control/index.php panel if url having mysite.com/admin using htaccess. 1.我想将我的网站重定向到mysite.com/control/index.php面板(如果使用htaccess的网址为mysite.com/admin)。 can any one help on this?
有人可以帮忙吗? This is my htaccess.
这是我的htaccess。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
You can insert a new rule to handle /admin
URI: 您可以插入新规则来处理
/admin
URI:
RewriteEngine On
RewriteRule ^admin(/.*)?$ control/index.php$1 [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php/$1 [L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.