Skip to content
WJunction - Webmaster Forum

How to Redirect !

Status
Not open for further replies.

12 comments

@geo

can i do it directly from the domain Registrar.

because i should purchase a host to get access to cpanel.

its a waste of money..
 
Well it depends, via the http server, PHP or?

For example, PHP:

PHP:
header( 'Location: http://www.differentsite.com/' );

Or there's of course via the server, such as lighttpd... BUT I think the solution you're looking for is usually offered via control panel on your server or where you registered the domain. For instance, you should be able to setup "URL Forwarding" via GoDaddy or NameCheap to the main URL.
 
there is an option in my domain registrar.

the option is " Domain Forwarding "

Should i try that ??

Definitely. For example, I want wjunction.org to forward to the .com -- For the .org in NameCheap, I use these settings, save and get the "Successfully updated" message:

[slide]http://i.imgur.com/RGvj5.png[/slide]

For these settings to work your domain has to be using the registrars nameservers. If not, you'll have to go the cPanel route or transfer the domain back.
 
You need to setup a 301 redirect, Just paste this at the end of your .htaccess file

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.heroturko\.org$
RewriteRule ^(.*)$ http://www.heroturko.com/$1 [L,R=301]

remember to keep a backup of the original .htaccess file
 
Doing it from cpanel keep the control with you. just in case you decide to change the redirect url, it will be very easy.
 
Status
Not open for further replies.

About the author

S
Active Member · Joined
666
Messages
153
Reactions
43
Points

Advertise on WJunction

Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.

Contact us
Back
Top Bottom