Redirecting url to a folder
<p>I had a Joomla websites once upon a time which is still in root directoy. And recently I have contstructed my website in a folder with html 5 by myself..</p>

<p>To redirect my url to my new folder I have found this and had successfull with it : 
an index.html containing =</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script language="Javascript"&gt;
function goto(){
window.location.href="x.href.php"
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body onload="goto()"&gt;
&lt;/body&gt;
&lt;/html&gt; 
</code></pre>

<p>But now I see that my joomla pages can still be reached and it wouldnt be a problem unless Google still shows pages from old version (joomla one) . </p>

<p>How can I redirect all pages/links to the new folder? 
Can this be done via Javascript again?</p>
