Welcome Guest, Not a member yet? Register   Sign In
Rewrite public from url
#5

As Ciadmin said, this is two part problem - removing 'ci4/public' from URL and removing 'index.php' from URL.

Using localhost had some limitations anyway that I can't remember right now, but you can set up mock domain in your hosts file (C:\Windows\System32\drivers\etc\hosts), add 127.0.0.1 mydomain.local in there.

Then update Apache virtual hosts so that mydomain.local points to htdocs/ci4/public/ holder.

And then, entering http://mydomain.local in your browser should now open your correct website.

You can of course replace mydomain.local with anything you want to.

Little heads up, we used mydomain.dev and at some point Google made Chrome treat .dev as special domain that couldn't be local connection, because of some internal reasons how Google had set up their tools, so we had to come up with another mock top level domain name.
Reply


Messages In This Thread
Rewrite public from url - by rmcdahal - 12-19-2018, 09:52 AM
RE: Rewrite public from url - by ciadmin - 12-19-2018, 10:21 AM
RE: Rewrite public from url - by rmcdahal - 12-19-2018, 10:32 AM
RE: Rewrite public from url - by ciadmin - 12-19-2018, 05:26 PM
RE: Rewrite public from url - by Pertti - 12-20-2018, 01:53 AM
RE: Rewrite public from url - by dave friend - 12-20-2018, 10:15 AM
RE: Rewrite public from url - by Pertti - 12-24-2018, 04:15 AM
RE: Rewrite public from url - by dave friend - 12-24-2018, 09:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB