Welcome Guest, Not a member yet? Register   Sign In
Image path Css not work
#1

[eluser]Unknown[/eluser]
Hi all !. I have a project in CI. I create a subdomain for the project. So, my page domain is www.abcde.edu.ar, and project domain is: www.apps.abcde.edu.ar.
The server folder structure is:
Quote:-Public_html
-- index.hmtl
-- css
-- images
-- apps (CI project)
---- application
---- img
---- js
---- css
---- index.php

I try include image path as:
Code:
#aDiv {background-image: url("/apps/img/main_bg.gif")}
#aDiv {background-image: url("../img/main_bg.gif")}
#aDiv {background-image: url("/img/main_bg.gif")}
But not work any method. Firefox and Chrome shows 404 error.
Any idea ?
#2

[eluser]InsiteFX[/eluser]
If you look at the application directory you will see a .htaccess file there it stops all access to those directories.
You need to create an assets directory in your root public_html and place all assets there.




Theme © iAndrew 2016 - Forum software by © MyBB