up vote 0 down vote favorite
share [g+] share [fb]

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?

link|improve this question

50% accept rate
feedback

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

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

1 Answer

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?

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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