Recently I have started to put my Joomla installs into a subdirectory in my www root. Then, using .htaccess I remove the subdirectory so the url appears that Joomla is installed in the www root, but is not. This is the rewrite I use. RewriteEngine On RewriteRule ^$ /joomla/ [QSA,L] RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule !^(forum|blog|wordpress|joomla)(/.*)?$ /joomla%{REQUEST_URI} [QSA,L] Code (markup): Everything works jim dandy using this. Well, except for search. When I try to use Joomla search I get a 404 error with this odd looking path. /joomla/component/search/test// Code (markup): Now, if I go to the Joomla rewrite, instead of mod_rewrite the problem goes away. In that case one gets the http://domain-name.com/INDEX.PHP/style/urls/ Code (markup): style urls and I do not want that. I have tried with a default template as well with the same results. It's definitely the rewrite cond not being just perfect, or something with how Joomla does a search. I just can't seem to stick my finger on the issue. I have this problem on 2 different servers as well. If anybody has any ideas, I am all ears. The site is http://CMStr.com