phranque - 10:52 pm on Apr 1, 2013 (gmt 0)
welcome to WebmasterWorld, p4kp4k!
it looks like you are trying to do an internal rewrite rather than a redirect.
in that case why are you looking at the hostname?
please describe what type of urls you want to link to in your documents and what the internal paths from the document root look like for those urls.
describe the urls requested and the responses you got for cases that worked as well as cases that failed.