Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Search fails w/ Joomla in a sub dir and using mod rewrite.

7:46 pm on Mar 4, 2010 (gmt 0)

New User

5+ Year Member

joined:Mar 4, 2010
posts: 10
votes: 0

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]

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.

Now, if I go to the Joomla rewrite, instead of mod_rewrite the problem goes away. In that case one gets the
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 I think. I do not beleive this is a Joomla issue, just me using mod_rewrite wrong. SEF urls are all working fine.
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.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members