codeigniter 我有一个codeignitor网站,我安装在托管为www.somedomain.com/folder,但它加载基本URL::somedomain.com

bhmjp9jg  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(72)

我有一个codeignitor网站。安装在作为www.somedomain.com/folder。但当我访问这个网址它重定向到www.somedomain.com
这是我的htaccess代码

<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /

RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\DCV)?$
RewriteRule . index.php$1 [L,QSA]
</IfModule>
7cwmlq89

7cwmlq891#

将您的config/config.php中的“base_url”行更改为

$config['base_url'] = 'www.somedomain.com/folder';

相关问题