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.

Problems with static pages

February 08, 2011 3:27pm

Subscribe [3]
  • #1 / Feb 08, 2011 3:27pm

    mocca

    5 posts

    Hello!

    I’m working on my first EE site and have one and a half problem: after removing the index.php of the URL my (static) pages can’t be found. I have a template group called “home” with the site’s home page (works well, URL: http://www.abc.de/dev/ ). The URL for the about page is: http://www.abc.de/dev/about/ but the page can’t be found. The index.php of the template group “about” contains the site’s template.

    When I remove the .htaccess it works a little bit: the page appears in in the browser. Problem here is the css file “central.css” which isn’t load though the path is correct.

    Within the html <head> Firebug shows this:

    (see attachment)

    Actually in the template “html_head” I wrote this:

    <link href="{homepage}/themes/site_themes/my-theme/css/central.css" rel="stylesheet" type="text/css" />

    What’s going wrong here?

    In the moment I only want a few pages. Why is this so difficult?


    Using EE v2.1.3
    Enable Caching? No

    Thanks!

    Monika

    Moved to CodeShare Corner by Moderator

  • #2 / Feb 09, 2011 12:13am

    John Henry Donovan

    12339 posts

    Monika,

    We don’t officially support the removal of index.php

    Can you confirm all works ok with your index.php in place and your htaccess disabled?

    If you just use the following does it work?

    <link href="/themes/site_themes/my-theme/css/central.css" rel="stylesheet" type="text/css" />

    Are you using the Pages Module?

  • #3 / Feb 09, 2011 5:23am

    mocca

    5 posts

    Nothing changed after removing {homepage} from the URL except the kind of markup firebug shows me now (see attachment). I tried to move central.css to the root directory of the website. I wanted to get sure that there is really no mistake within the path to the central css file. This didn’t work either (firebug shows me now the entire html markup between two link-tags ?!?)

    The .htaccess is disabled. In the moment I don’t use Pages. I have this css problem with using index.php in the URL and no .htaccess. If I remove index.php (and use a .htaccess) not only the css can’t be found but the entire web page.

  • #4 / Feb 09, 2011 4:40pm

    Ingmar

    29245 posts

    I am not following completely. As John Henry said, please do not attempt to remove index.php from your URL yet. Can you show us a link to the site that is (not) working?

  • #5 / Feb 09, 2011 5:42pm

    mocca

    5 posts

  • #6 / Feb 09, 2011 6:45pm

    mocca

    5 posts

    Ok, now it functions properly. I don’t know why but the one and only working notation is this:

    <link href="http://www.elschner-sedivy.de/dev/themes/site_themes/elschner-sedivy/css/central.css" rel="stylesheet" type="text/css"/>

    But now I want to remove the index.php from the URL and this seems to be not possible.

    .htaccess:

    RewriteEngine on
    RewriteCond $1 !^(images|onufri|themes|index\.php|admin\.php) [NC]  
    RewriteRule ^(.*)$ /index.php/$1 [L]
  • #7 / Feb 10, 2011 9:32am

    Sue Crocker

    26054 posts

    Hi, mocca. It works that way because it appears your directory structure includes the /dev folder.

    Unfortunately we can’t assist you in removing index.php from the urls via .htaccess, but other members of the community can assist. Moving to the CodeShare Corner.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases