Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I seem to be having a lot of issues with my htaccess files

So, in my publuc_html, I have a CMS, with has rewrites enabled, by this:

RewriteRule ^([A-Za-z\-/]+)$ index.php?do=$1 [QSA]
RewriteCond %{SERVER_PORT} 80 

and in the public_html folder, I have a folder called forums, which is used by subdomain, The forum operated on vBSEO and this is the htaccess contents:

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
RewriteRule ^((forums|archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images|forums)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]

How do I work this issue out? When I visit the subdomain, I am directed to

share|improve this question

migrated from Dec 28 '09 at 8:58

This question came from our site for professional and enthusiast programmers.

It might help to set up a RewriteLog directive so you can trace exactly what rewrites are happening and figure out where the problem lies.

Also, I might be able to give a better answer if you could clarify (A) what rewriting you're aiming for, and (B) what you're actually getting.

Is that correct?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.