从codeigniter URL中删除主题文件夹名称

问题描述 投票:0回答:1

enter image description hereI页面位于名为frontend / page的文件夹中,url显示为www.domain.com/frontend/page/home

如何将其更改为www.domain.com/home此外,进入家庭是动态的,它可能是关于我们或联系我的.htaccess文件是

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|uploads|documentation|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
codeigniter url mod-rewrite url-rewriting url-routing
1个回答
0
投票

如果要将任何页面重定向到qazxsw poi子目录中的相应控制器,可以修改如下路由:

frontend/page
© www.soinside.com 2019 - 2024. All rights reserved.