Welcome Guest, Not a member yet? Register   Sign In
Accessing an Assets folder in Public
#4

(This post was last modified: 02-19-2020, 02:57 PM by captain-sensible.)

(02-19-2020, 02:32 PM)ByteHive Wrote:
(02-19-2020, 02:13 PM)captain-sensible Wrote: Did you change the httacces file? 


i'm playing with CI4 in two ways ; one   is on my desktop  , so i just cd /home/andrew/Desktop/CI
php spark serve.(i running slackware

with that simple approach everything works including removing index.php from url . So no i didn't touch .htacess


Now i also have CI alomg with some other php framework running on apache on my laptop because i wanted to know how things would work on shared hosting. in other words at /var/www/htdocs i have a CI directory (codeigniter) and in htdocs dirs which have other frameworks. in this case using style sheet etc still worked, but i could not get rid of index.php .

The setup is via virtual hosts, so i edited  httpd.conf and httpd-vhosts.conf

no look . I did get rid of index.php by putting a more elaborate .htaccess in the public folder.

but on virtual host index.php was the only issue

maybe you can elaborate on assets and your set up ? with mine as you can see, css directory is straight inside public , if yours is something like public/asset/css then your path must be quoted to use them
Reply


Messages In This Thread
RE: Accessing an Assets folder in Public - by captain-sensible - 02-19-2020, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB