Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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, forums.domain.com. 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 http://www.domain.com/forums?

share|improve this question

migrated from stackoverflow.com Dec 28 '09 at 8:58

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

1 Answer 1

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

 
discard

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.