Hi, am currently using the following in my .htaccess file
Code:
Options +FollowSymLinks
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html?|php)\ HTTP/
RewriteCond %{REQUEST_URI} !^/administrator
RewriteRule (([^/]+/)*)index\.(html?|php)$ http://www.example.com/$1 [R=301,L]
This rule breaks the core Joomla search, which rubbish though it is, we would rather have functioning! When I say it 'breaks' it, I mean that normally when you enter a search term the url looks like
Code:
www.example.com/component/search/example?ordering=&searchphrase=all
instead of which it redirects to either the root or the nearest /. I have no idea why it would do this as the search url contains no instance of 'index' . Anybody?

edit: been trying to research this and realised I should maybe uncomment
Code:
RewriteBase /
which I did - seemed to make things better, in that the search bar looked like it was trying but redirected to component / search, bringing no results for anything. So have temporarily commented out the rule I want to use. Annoying, because Google hasn't canonicalized the pages, and lists them as two separate pages #(example.com/index.php and example.com both listed.) any help most appreciated!