https url codeigniter

时间:2019-02-20 05:54:58

标签: .htaccess codeigniter codeigniter-3 vhosts codeigniter-htaccess

我的htaccess文件有问题。有人可以帮助我确定问题所在吗?

我实际上在

中删除了index.php
  

foldername / application / config / config.php


我将此添加到了我的apache的vhost中并重新启动了服务

<VirtualHost *:80>
    ServerAdmin user@mai.com
    DocumentRoot "C:/server/Apache24/htdocs/foldername"
    <Directory "C:/server/Apache24/htdocs/foldername">
        Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
    </Directory>   
    ServerName https://foldername.com
    ServerAlias https://foldername.com
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

这实际上在我的本地主机上有效,但是当我配置url时,我添加了https,因为我需要将其放在https中,因此htaccess无法正常工作。

这是我的htaccess:

RewriteEngine On
RewriteRule ^(application) - [F,L] 
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>

谢谢。

0 个答案:

没有答案