Posts: 28
Threads: 10
Joined: Jan 2018
Reputation:
1
i have installed ci4 in my local environment and now i wants to rewrite url as
http://localhost/ci4/pages/add
but the problem is i have to include
http://localhost/ci4/public/index.php/pages/add
how can i achieve this
please provide .htaccess files for this issue
I have installed on /ci4 folder
and i dont wana set virtual host,i need simplicity
Posts: 28
Threads: 10
Joined: Jan 2018
Reputation:
1
12-19-2018, 10:32 AM
(This post was last modified: 12-19-2018, 10:33 AM by rmcdahal.)
Thanks for Quick Reply
My scenario is
I am using Ampps for local server
i am accessing ci3 sites with localhost/ci3demo which is working fine
I have installed ci4 using composer and for now i don't wana move system files outside to root folder.
i just wants is i need to access localhost/ci4/pages/somemethods which is not working but localhost/ci4/public/index.php/pages/somemethods is working.. all i wants is remove index.php and public from url.
I have already followed installation guide and the links you pointed.still no luck
Posts: 1,321
Threads: 21
Joined: Jan 2014
Reputation:
70
Hmm ... CI4 is not intended for use as a subfolder (localhost/ci4/...). Our intent is that you map the document root of your test server, or for a virtual host, to the public folder inside your project.
Alternately, "php spark serve" inside your project root, and check localhost:8080
Posts: 1,020
Threads: 15
Joined: Jun 2015
Reputation:
50
I found out the hard way when a dev site that had been working perfectly suddenly began failing at unpredictable times.
Nothing had changed in code or server config. This site already had a self-signed certificate in place and eventually we realized it was the non-SSL calls that were failing. It still took a long time to learn the problem behavior had been baked into the Chrome browser.