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.

Simple Search Form not working on live server

August 08, 2012 8:31am

Subscribe [1]
  • #1 / Aug 08, 2012 8:31am

    Matt Ellis

    51 posts

    Hello,

    I have a Simple Search Form on my site. This works as expected when developing locally.

    However, after uploading the site to the live server the form no longer works. Instead of loading the search result / no results templates it’s redirecting to the site’s index page.

    Pretty sure it’s a .htaccess problem, as when I remove the .htaccess file and keep the index.php it works again.
    My .htaccess file currently looks like this.

    <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>

    Had to add the ‘?’ to stop the “No input file specified” message.

    Any help would be greatly appreciated!

  • #2 / Aug 08, 2012 3:51pm

    Kevin Smith

    4784 posts

    Hi Matthew,

    I’m not quite sure what’s going on here, but I think the best way to get you help would be to take a look first-hand. Be on the lookout for an email from me.

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

ExpressionEngine News!

#eecms, #events, #releases