Regex 使用htaccess强制codeigniter将某些URL重定向到子文件夹
我在根公用html中安装了codeigniter。我还在子文件夹中安装了wordpress。我需要重定向除admin/anything以外的所有URL以重定向到子文件夹中的wordpress。 我的文件夹结构如下所示Regex 使用htaccess强制codeigniter将某些URL重定向到子文件夹,regex,.htaccess,codeigniter,Regex,.htaccess,Codeigniter,我在根公用html中安装了codeigniter。我还在子文件夹中安装了wordpress。我需要重定向除admin/anything以外的所有URL以重定向到子文件夹中的wordpress。 我的文件夹结构如下所示 应用 观点 控制器 wordpress 贮藏 如何使用htaccess文件实现这一点 这是我的htaccess文件: RewriteEngine on RewriteBase / RewriteCond %{HTTPS} !=on RewriteRule ^.*$ https
- 应用 观点 控制器
- wordpress
- 贮藏
RewriteEngine on
RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Hide the application and system directories by redirecting the request to index.php
RewriteRule ^(application|system|\.svn) index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
您当前的.htaccess规则在哪里?我们无法帮助您修改您未提供的内容。我添加了htaccess内容