title: redirect pages from weblog to domain with javascript
body: <p>i want to redirect pages from my weblog to a domain which i have on it.
  for example this url:</p>
  
  <pre><code>the-vampire-diaries.mihanblog.com/post/300
  </code></pre>
  
  <p>should redirect to this:</p>
  
  <pre><code>tvdfans.ir/post/300
  </code></pre>
  
  <p>the thing is i only have access to the style codes not the files.
  i want a JavaScript code that can do this.</p>