本文介绍了将用户从子目录重定向到主目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要301像这样重定向网址:
I need to 301 redirect urls like this:
example.com/exam/anything
example.com/anything
我目前的.htaccess文件
my current .htaccess file
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /admin/index.php?$1 [L]
i不知道它是如何工作的
i do not know how it work
推荐答案
i不知道它是如何工作的
i do not know how it work
这篇关于将用户从子目录重定向到主目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!