base_url() and css -img-js |
[eluser]Sergiu D[/eluser]
[quote author="Clifford James" date="1271011662"]The easiest way is adding a / before the folder. Code: <link href="/css/style.css" rel="stylesheet" type="text/css" media="screen"> In this case there is no need for any rewrite in your .htaccess Without / www.example.com + css/style.css = www.example.com/css/style.css www.example.com/fu/bar + css/style.css = www.example.com/fu/bar/css/style.css With / www.example.com + /css/style.css = www.example.com/css/style.css www.example.com/fu/bar + /css/style.css = www.example.com/css/style.css[/quote] Yes, this was the first thing that I've tried. But it's working only on projects where I have the web site in the root of my server. Else, I will have this: Code: / So, in this case, putting a "/" before every path, will throw me to the root, and of course, is nothing there. |
Messages In This Thread |
base_url() and css -img-js - by El Forum - 03-29-2010, 07:15 AM
base_url() and css -img-js - by El Forum - 03-29-2010, 07:20 AM
base_url() and css -img-js - by El Forum - 03-29-2010, 07:25 AM
base_url() and css -img-js - by El Forum - 03-29-2010, 07:26 AM
base_url() and css -img-js - by El Forum - 03-29-2010, 07:32 AM
base_url() and css -img-js - by El Forum - 03-29-2010, 07:38 AM
base_url() and css -img-js - by El Forum - 03-29-2010, 07:41 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 06:38 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 07:33 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 07:40 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 07:43 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 07:47 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 07:51 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 07:55 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 08:02 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 08:06 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 08:07 AM
base_url() and css -img-js - by El Forum - 04-11-2010, 08:11 AM
|