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.

Removing index.php from URL, running on lighttpd

July 01, 2011 1:26pm

Subscribe [2]
  • #1 / Jul 01, 2011 1:26pm

    Brian A Morales

    27 posts

    Greetings,

    I am trying to remove the index.php from my site’s url, but continuously running into a ‘404-not found’ error message. The website is http://www.allsidesofthestory.com/

    I’ll outline my steps below:

    Running:
    • EE Freelancer v2.1.3 Build: 20110411
    • Dreamhost Virtual Private Server running Lighttpd
    • Removed index.php from General Configuration
    • Set Enable Strict URLs to ‘NO’
    • Followed instructions in this EE Forum thread
    • Here are two pages I also referenced: DH LighttpdLighttpd URL Rewrites
    • I’ve attached my lighttpd configuration as a txt file to this post

    Please let me know if there is any further information I should add, and, thank you in advance!

  • #2 / Jul 01, 2011 3:00pm

    Brandon Jones

    5500 posts

    Hi Brian,

    Removal of index.php is only officially supported on Apache 2.x or later, and ExpressionEngine 2.2+. I’ll move this over to Community Help for you. Thanks!

  • #3 / Dec 02, 2011 4:35pm

    Brian A Morales

    27 posts

    Hi Brandon,

    The issue was solved by adding the following lines to the lighttpd.config file, using shell commands:

    url.rewrite-once = (
      “^/(login|system|themes|images|admin)(.*)” => “/$1$2”,
      “^/(.*)$” => “/index.php/$1”
    )

    Save, then restart lighttpd. Your URLS will be clean!

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

ExpressionEngine News!

#eecms, #events, #releases