• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSS, JS, Image and inner page links are not working

#1
hello,

i have setup a new site is my server, all seems to be ok, but CSS, JS, Image and inner page links are not working. i did not add any code in .htaccess file yet. please advise how i can resolve this issue.
Reply

#2
Add code to your htaccess file.

What code is in your htaccess file? And what do your links look like?
Reply

#3
(06-22-2017, 12:46 PM)Martin7483 Wrote: Add code to your htaccess file.

What code is in your htaccess file? And what do your links look like?

codeigniter will work without htaccess.

@shehin

add the base_url to config.php

and in the html head

Code:
<link rel="stylesheet" href="<?=base_url('path_to_css_file/youcssfile');?>">

if you have a folder strukture like this:

application
assets/css/youcssfile.css
system
index.php

you can do this:
Code:
<link rel="stylesheet" href="<?=base_url('assets/css/youcssfile.css');?>">
Reply

#4
(06-22-2017, 12:52 PM)Paradinight Wrote:
(06-22-2017, 12:46 PM)Martin7483 Wrote: Add code to your htaccess file.

What code is in your htaccess file? And what do your links look like?

codeigniter will work without htaccess.

But only if

PHP Code:
$config['index_page'] = 'index.php'

is not blank. Or index.php will not be added to the generated urls
Reply

#5
(06-22-2017, 01:23 PM)Martin7483 Wrote:
(06-22-2017, 12:52 PM)Paradinight Wrote:
(06-22-2017, 12:46 PM)Martin7483 Wrote: Add code to your htaccess file.

What code is in your htaccess file? And what do your links look like?

codeigniter will work without htaccess.

But only if

PHP Code:
$config['index_page'] = 'index.php'

is not blank. Or index.php will not be added to the generated urls

True. But the index.php is the default value Big Grin

We need more information
Reply

#6
(06-22-2017, 01:39 PM)Paradinight Wrote: True. But the index.php is the default value Big Grin

We need more information

Indeed, my glass ball is a bit fuzzy today Tongue
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.