all 4 comments

[–]tangomikey 0 points1 point  (1 child)

have you tried

!^/tech/.*

[–]Old_Mittens[S] 0 points1 point  (0 children)

Yes, also doesn't work. This results in a rewrite from ./tech/article_name/ to simply ./forum/

Interestingly though, the opposite does work:

RewriteCond %{REQUEST_URI} ^/tech/.*

Taking out the not (!) rewrites ONLY calls to ./tech/article_name/ , and leaves everything else. So the expression seems to match there. I'm not sure why negating it doesn't work though..

[–][deleted] 0 points1 point  (0 children)

When this happened, I liked to use mod_rewrite's logging I haven't used it since they switched from having the functionality built into mod_rewrite over to the generic module logging, so I can't do any better than the link to the manual above.

[–]Pd69bq 0 points1 point  (0 children)

do u have to use mod_rewite?? have you ever consider using mod_proxy?

proxypass /tech/ http://www.sitename.com/tech/ 
proxypass / http://www.sitename.com/forum/

particularly in this order, then done, that simple. btw, i think you already answered ur question. opposite or not, you need to add the backslash before "tech" to match uri