ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

[SOLVED] Problem linking to stylesheets

April 02, 2010 10:59pm

Subscribe [1]
  • #1 / Apr 02, 2010 10:59pm

    Matthieu Fauveau

    106 posts

    Hi guys,

    I’m must say it’s not quite often I need to seek help with ExpressionEngine but here comes on of those time.

    I’ve been struggling to get the {stylesheet} tag to work on a specific server that runs PHP as FastCGI.

    Here is what the .htaccess looks like :

    RewriteEngine on
    
    RewriteCond $1 !^(images|javascripts|mysite_cms|themes|mint|favicon\.ico|robots\.txt|index\.php) [NC]
    RewriteRule ^(.*)$ /index.php?$1 [L]

    If I set EE site url to http://www.mysite.com/index.php it works but as you might guess I don’t want all my pages to have the index.php in them.

    So, I’m pretty sure it’s htaccess related… your help would be much appreciated!

    Have a great easter !
    Matt.

    [Mod Edit: Moved to the How to forum]

  • #2 / Apr 03, 2010 12:02pm

    Matthieu Fauveau

    106 posts

    Sorry for posting in the EE 2.0 forum, I thought that feature was only available in that version.

  • #3 / Apr 05, 2010 10:31pm

    Matthieu Fauveau

    106 posts

    I’m not sure why but it’s working with the exclude method :

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteRule ^(.*)$ /index.php?$1 [L]
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases