That's because I use Virtual Host file.
Either you can change the web server to your own or add the below VHOST Code.
Code:
#--------------------------------------------------------------
# CodeIgniter 3.1.9 News Tutorial
#--------------------------------------------------------------
#--------------------------------------------------------------
# HTTP:
#--------------------------------------------------------------
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/ci3news/public_html"
ServerName ci3news.localhost
ServerAlias ci3news.localhost
<Directory "C:/xampp/htdocs/ci3news/public_html">
Order allow,deny
Allow from all
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
#--------------------------------------------------------------
# HTTPS:
#--------------------------------------------------------------
<VirtualHost *:443>
DocumentRoot "C:/xampp/htdocs/ci3news/public_html"
ServerName ci3news.localhost
ServerAlias ci3news.localhost
SSLEngine on
SSLCertificateFile "conf/ssl.crt/server.crt"
SSLCertificateKeyFile "conf/ssl.key/server.key"
<Directory "C:/xampp/htdocs/ci3news/public_html">
Options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Hope that helps.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )