# Codeigniter not displaying stylsheet when clicking on links

**URL:** <https://www.phphelp.com/t/codeigniter-not-displaying-stylsheet-when-clicking-on-links/20753>\
**Category:** General PHP Help\
**Created:** [July 27, 2013, 4:11am UTC](https://www.phphelp.com/t/codeigniter-not-displaying-stylsheet-when-clicking-on-links/20753 "2013-07-27T04:11:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ctrice](https://www.phphelp.com/user_avatar/www.phphelp.com/ctrice/32/933_2.png) [@Ctrice](https://www.phphelp.com/u/Ctrice)\
**Post date:** [July 27, 2013, 4:11am UTC](https://www.phphelp.com/t/codeigniter-not-displaying-stylsheet-when-clicking-on-links/20753/1 "2013-07-27T04:11:01Z")

</div>

Hi There,

I just built a sit in Codeigniter, but when I click on a menu item the stylesheet breaks and it displays all of the content broken out on the page.

**Test Server:**  
[http://scenecreek.com/mbp](http://scenecreek.com/mbp)

**Final Site:**  
[http://marciabrownproductions.com/](http://marciabrownproductions.com/)

I uploaded it to a test server and all the links works perfectly.But when I uploaded the finished site ot my clients server the css issue starts. Is there something wrong with my clients server? Or is there a problem with how I coded the site? Why does it work on one server, but not the other.

Thanks!

---

<div class="post-metadata">

**Author:** ![Redscouse](https://www.phphelp.com/user_avatar/www.phphelp.com/redscouse/32/124_2.png) [@Redscouse](https://www.phphelp.com/u/Redscouse)\
**Post date:** [July 27, 2013, 10:36am UTC](https://www.phphelp.com/t/codeigniter-not-displaying-stylsheet-when-clicking-on-links/20753/2 "2013-07-27T10:36:22Z")

</div>

Looking at the source code I can see the link to the css file changing on your client server but stays the same on your testing server.

Testing server:  
homepage css link:

about us css link:

Client server:  
Homepage css link:

about us css link:

As you can see, on your clients server it is append values to the url.

Hope that helps,  
Red 😉

---

<div class="post-metadata">

**Author:** ![Ctrice](https://www.phphelp.com/user_avatar/www.phphelp.com/ctrice/32/933_2.png) [@Ctrice](https://www.phphelp.com/u/Ctrice)\
**Post date:** [July 27, 2013, 11:13am UTC](https://www.phphelp.com/t/codeigniter-not-displaying-stylsheet-when-clicking-on-links/20753/3 "2013-07-27T11:13:37Z")

</div>

Hey,

Thanks for that tip. I made it an absolute path, but now when I click on any page it just seems to keep on loading my home page view. Any reason why it;s doing this?

---

<div class="post-metadata">

**Author:** ![Redscouse](https://www.phphelp.com/user_avatar/www.phphelp.com/redscouse/32/124_2.png) [@Redscouse](https://www.phphelp.com/u/Redscouse)\
**Post date:** [July 27, 2013, 2:19pm UTC](https://www.phphelp.com/t/codeigniter-not-displaying-stylsheet-when-clicking-on-links/20753/4 "2013-07-27T14:19:59Z")

</div>

can you post up the code around (and including) the line that sets the css.

also, are you using .htaccess for file directories?
