In case you want to redirect a URL on URL domain to your subdomain or another URL , There are many ways you can do it
Technique 1
-
Open the file .htAccess file present in /public_html/yourDomain folder using an ftp client .
-
Add an entry in it as follows :Redirect 301 /oldPath http://www.subdomain.yourdomain.com/
-
To move the entire site : Use this Redirect 301 / http://www.example.com/
-
Save the file , And upload it again . Make sure that you upload it in ASCII mode.
Technique 2 :Incase you don’t have the ftp access , you can do it using HTML as well .Lets see how this can be done.
Edit the contents of the page you want to redirect and insert the following code .
<!DOC TYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv=”REFRESH” content=”0;url=http://www.the-new-domain-to-redirect-to.com”>
</HEAD>
<BODY>
Optional page text here.
</BODY>
</HTML>
The tag meta is actually responsible for sending the redirect to the new page.
The second method is slower than the first method as this would first load the page and then call redirect .
Using the first method I was able to create different categories in my Word press and redirect each category to a subdomain . Eg I created a category “Wallpapers”. The url for this category thus was sonusinghal.com/wallpapers. I then redirected it using .htaccess to wallpapers.sonusinghal.com. The same thing can also be achieved by using the cpanel by setting the option in the domain redirect option . So what happens internally is basically it modifies the .htAccess file
Also Read : Google gadgets – A Hacking Tool ?
Next Generation AntiVirus – Cloud AV

