Welcome Guest, Not a member yet? Register   Sign In
Problem when running my app with a different base URL
#2

(This post was last modified: 03-22-2020, 08:06 AM by InsiteFX.)

If you want to run with a base url like that then you need to use vhosts file.

Which is under Apache server.

Code:
#--------------------------------------------------------------
# HTTP:
#--------------------------------------------------------------
<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/your_project_root_folder"
    ServerName tutorial.ci
    ServerAlias tutorial.ci
    <Directory "C:/xampp/htdocs/your_project_root_folder">
        Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>
 
Your vhost would like something like that.

If you are on Windows you need to edit the windows hosts file.

C:\Windows\System32\drivers\etc\hosts

Using notepad and add this.

127.0.0.1    tutorial.ci
or (IP verison 6)
::1    tutorial.ci

You should install either WAMP or XAMPP depending on your needs.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Problem when running my app with a different base URL - by InsiteFX - 03-22-2020, 08:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB