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.

Freeform not working using official 'remove index.php' docs

January 19, 2012 5:09am

Subscribe [1]
  • #1 / Jan 19, 2012 5:09am

    karlosb

    43 posts

    Hi Guys,

    I’m having an issue with my freeform template not actually submitting.

    I’ve sourced the problem down to the ‘remove index.php’ htaccess script as supplied
    on the EE Docs here and as shown below:

    <IfModule mod_rewrite.c>
            RewriteEngine On
    
            # Removes index.php
            RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ /index.php/$1 [L]
    
            # If 404s, "No Input File" or every URL returns the same thing
            # make it /index.php?/$1 above (add the question mark)
    </IfModule>

    I’ve removed this script from htaccess and the Freeform templates works 100% correct.

    Does anyone alse have this issue or a modification for this?

    Many thanks in advance 😊

    Regards

    Karl


    here

  • #2 / Jan 19, 2012 5:50am

    karlosb

    43 posts

    *** Update ***

    I tried the following and commented out the following from the above:

    #RewriteCond %{REQUEST_FILENAME} !-d

    And it now seems to work!

  • #3 / Jan 19, 2012 6:49am

    karlosb

    43 posts

    I’ve got to the bottom of this now:

    I had an exsiting index.html file in the root directory
    (from an original flat HTML Build of my site before updating to ExpressionEngine).

    This was actually causing the issue, and I’ve now removed the index.html.

    All is now working correctly with the Freeform Template. 😊

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

ExpressionEngine News!

#eecms, #events, #releases