Redirection of Joomla website can be done by modifying and editing the .htaccess file in the server. But many of us face problems while writing exactly the redirection code. Recently we found a website which can help us generating any .htaccess code, may it be non-www to www redirection, 301 redirection or 404 errors.
This site allows you to create a number of different redirects – if you’re redirecting single pages simply enter the old URL and new URL in the fields highlighted below, and when you generate the htaccess it will show the code in the box on the right hand side. Copy this, and paste it at the very bottom of your htaccess file.