CodeIgniter Forums
403 access denied - Printable Version

+- CodeIgniter Forums (
+-- Forum: Using CodeIgniter (
+--- Forum: Installation & Setup (
+--- Thread: 403 access denied (/showthread.php?tid=66653)

403 access denied - willian.bumba - 11-16-2016

I'm trying increase a css or js file to my project that are in: localhost//sigm/asets/css
using this commando
<link href="<?php echo base_url()."asets/css/bootstrap.min.css";?>" rel="stylesheet" type="text/css" />
and my base url setting is sigm.

RE: 403 access denied - InsiteFX - 11-16-2016

A web server may or may not return a 403 Forbidden HTTP 403 in response to a request from a client for a web page or help
indicate that the server can be reached and understood the request, but refuses to take any further action.
Status code 403 responses are the result of the web server being configured to deny access, for some reason,
to the requested resource by the client.

Try this:

PHP Code:
<link href="<?php echo base_url('asets/css/bootstrap.min.css');?>" rel="stylesheet" type="text/css" /> 

notice the single quotes.

RE: 403 access denied - willian.bumba - 11-25-2016

Thank you very much. It solved my problem.

RE: 403 access denied - marcopl - 11-25-2016

Any reason why the string concantenation did not work ?
<?php echo base_url()."asets/css/bootstrap.min.css";?>

RE: 403 access denied - Kel_Novi - 11-25-2016

(11-25-2016, 05:24 AM)marcopl Wrote: Any reason why the string concantenation did not  work ?
<?php echo base_url()."asets/css/bootstrap.min.css";?>

maybe you misspelled the word 'assets' or your $config['base_url'] has no trailing slashes at the end