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.

Search not working if I rename index.php to e.php and am also using modrewrite to remove e.php form URL

December 02, 2013 5:18pm

Subscribe [1]
  • #1 / Dec 02, 2013 5:18pm

    I am changing the name of index.php to e.php because my home page is not in EE.
    I have a mod rewrite setup which nicely redirects all unknown directories to e.php and strips it out of the URL.

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /e.php?/$1 [L]

    This works great for regular templates.  But simple search has stopped working.
    It works if I put e.php into the admin > general configurations “Name of your site’s index page”
    But that than automatically includes e.php into every URL.

    So it seems like simple search doesn’t understand that index.php has been renamed and it stops working (it just ignores the search and goes back to the real sites index.php)

    So how do I get simple search to recognize e.php without having to type it into the general configurations box.  Can I modify the search module in some way?

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

ExpressionEngine News!

#eecms, #events, #releases