Problem with Index.php and Low Search
Hello, I removed the index.php using the NSM .htaccess generator.
I tried to add the DirectoryIndex index.php index.html fix but I'm still getting redirected to the home page. There are no index.html files in the root.
# -- NSM .htaccess Generator Start --
# .htaccess generated by NSM .htaccess Generator v1.1.5
# @see: http://ee-garage.com/nsm-htaccess-gen...
# For more awesome .htaccess rules and optimisations
# checkout the HTML5 Boilerplate .htaccess files
# https://github.com/paulirish/html5-bo...
# Although highly unlikely, your host may have +FollowSymLinks enabled at the root level,
# yet disallow its addition in .htaccess; in which case,
# adding +FollowSymLinks will break your setup (probably a 500 error),
# so just remove it, and your rules should work fine.
Options +FollowSymlinks
# EE 404 page for missing pages
ErrorDocument 404 /Home/404
# Simple 404 for missing files
ErrorDocument 404 "File Not Found"
# Rewriting will likely already be on, uncomment if it isnt
#
# RewriteEngine On
# RewriteBase /
#
# Block access to "hidden" directories whose names begin with a period. This
# includes directories used by version control systems such as Subversion or Git.
RewriteRule "(^|/)\." - [F]
# remove the www - Uncomment to activate
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
# Remove the trailing slash to paths without an extension
# Uncomment to activate
#
# RewriteRule ^(.*)/$ /$1 [R=301,L]
#
DirectoryIndex index.php index.html
# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remo...
#
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/system.*
RewriteRule ^(.*)$ index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L]
# -- NSM .htaccess Generator End --
Replies
Low 15 Nov 2013 17:52
Under CP Home > Administration > General Configuration, what are your "URL to the root directory of your site" and "Name of your site's index page" settings?
And what is the exact URL of the page you are redirected to when submitting the form?
And can you try it with the native Search form? Do you get the same behaviour there?
Rick Smith 15 Nov 2013 18:33
Hello,
The URL root directory is:
http://www.exida-beta.com/
Index page is blank
exact URL I am redirected to is http://www.exida-beta.com/
Tried the Simple Search and get the same problem
Low 15 Nov 2013 18:43
The fact that the Simple Search has the same problem points to an environmental issue outside the scope of Low Search.
I'd suggest using the official method recommended by EllisLab to hide the index.php file: http://ellislab.com/expressionengine/... and see if the helps.