Apache issue with subdomains

Posted by mike on Stack Overflow See other posts from Stack Overflow or by mike
Published on 2010-04-21T03:31:30Z Indexed on 2010/04/21 4:33 UTC
Read the original article Hit count: 300

Filed under:
|

I just setup a subdomain with the following RewriteCond:

RewriteCond $1 !^search.php$  
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule ^/?([^/]+)$ search.php?q=$1 [L,NS] 

I'm using the same rewrite condition on my main domain and it works perfectly. However, when I set it up on the subdomain, it simply outputs "index.php" when going to http://subdomain.domain.com

Every page on the subdomain outputs the page name in the body instead of processing the code, except for the search page, which appears to be working correctly.

Any idea why every page but the search page works? What can I do to correct it?

© Stack Overflow or respective owner

Related posts about apache

Related posts about rewritecond