SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Wordpress styesheet no longer working when changing permalink settings

  1. #1
    SitePoint Zealot tim@getdim's Avatar
    Join Date
    Jul 2012
    Location
    Detroit
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Wordpress styesheet no longer working when changing permalink settings

    My client's site is self hosted on a windows server with IIS 11.
    Ive never built a site on a windows server before - its always been apache servers.

    The primary difference i am aware of is rather than the .htaccess it uses a web.config file.

    Problem is when i switch permalink settings in Wordpress to anything other than deafult, the stylesheet stops working, as well as the iframe i have been using for the slideshow.

    the end result looks like this: ScreenShot-2013-02-28.png


    but when i switch the permalinks back to 'default' it looks normal like this: Screen-Shot-2013-02-28-2.png

    I dont understand what could possibly be causing this.

    Also when viewing the site in IE or chrome on pc, it looks normal,
    but when i look at in chrome, FF, or safari (on mac os x lion) it displays as i showed you in the first screenshot.

  2. #2
    SitePoint Addict
    Join Date
    Mar 2013
    Location
    Oneonta, NY
    Posts
    232
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Tim,

    Are you linking to your style sheet using a relative link as opposed to an absolute link?

    Perhaps you can find an answer here,

    http://wordpress.stackexchange.com/q...tylesheet-path

    Hope that helps you,

    Shawn

  3. #3
    SitePoint Zealot tim@getdim's Avatar
    Join Date
    Jul 2012
    Location
    Detroit
    Posts
    128
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unfortunately, no that does not help me in the slightest.
    My theme is using
    Code:
    <?php bloginfo('stylesheet_url'); ?>" rel="stylesheet" />
    to access the stylesheet.
    I tried hard-coding it in html with an absolute path, but the result was the same.
    Code:
    http://domain.com/subfolder/wp-content/themes/themename/style.css

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •