rough way to fix links for a subdir - regexp for all relative href and src tags. Doesn't solve a problem for JS.
complete, generic  subdir fix. Use with wok from my repo.