Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

How to Redirect a URL or a Domian Name

Ads
banner
banner
banner
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#1
Senior Member
There are many reasons why to redirect a URL.
It can be because you may have moved content from one domain to another and need to redirect traffic from the old domain to the new one. You may have multiple domains that you want to redirect to a single website so for whatever the reason you wish to do it here are ways to do it.

Redirect URL using META TAG
Add this meta tag to every page you wish to redirect to another URL
Code:
<meta http-equiv="refresh" content="0;URL= http://letsforum.com">
"0" here stands for number of seconds before redirect happens. The http://letsforum.com is the URL that the page is to be redirected to.

Redirect URL using .htaccess file.
This redirect is mostly known as 301 redirect so open up notepad copy and paste this code then save it as .htaccess make sure to use ALL FILES as Save as type
Code:
RewriteEngine On
RewriteRule ^(.*)$ http://letsforum.com/$1 [L,R=301]
“L” here means that it’s the last instruction and “R” means redirect, “301” means a permanent redirect, http://letsforum.com is the URL that the page is to be redirected to.
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#2
Posting Freak
(12-01-2013 08:50 PM)victor Wrote:  There are many reasons why to redirect a URL.
It can be because you may have moved content from one domain to another and need to redirect traffic from the old domain to the new one. You may have multiple domains that you want to redirect to a single website so for whatever the reason you wish to do it here are ways to do it.

Redirect URL using META TAG
Add this meta tag to every page you wish to redirect to another URL
Code:
<meta http-equiv="refresh" content="0;URL= http://letsforum.com">
[b]"0"[/b] here stands for number of seconds before redirect happens.
The [b]http://letsforum.com[/b] is the URL that the page is to be redirected to.

Redirect URL using .htaccess file.
This redirect is mostly known as 301 redirect so open up notepad copy and paste this code then save it as .htaccess make sure to use ALL FILES as Save as type
Code:
RewriteEngine On
RewriteRule ^(.*)$ http://letsforum.com/$1 [L,R=301]
[b]“L”[/b] here means that it’s the last instruction and [b]“R”[/b] means redirect, [b]“301”[/b] means a permanent redirect, [b]http://letsforum.com[/b] is the URL that the page is to be redirected to.
Fix your code layout its very hard to read as is. Also both of these methods have been shown in other posts on the forums as well as other methods of redirection.

You also should explain if and why one is better than the other or what is the best method to use and what implication if any there maybe by using one method over another.
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
victor Offline referral

Posts: 638
Joined: Jun 2013
Reputation: 33

#3
Senior Member
Sorry about that next time I will try to make it look better
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#4
Posting Freak
(12-02-2013 03:26 PM)victor Wrote:  Sorry about that next time I will try to make it look better
You should repost a fixed code post. If someone copy and pastes exactly as is it will not work.
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
maya Offline referral

Posts: 1,058
Joined: May 2013
Reputation: 34

#5
Posting Freak
Chod which code will not work I see not problem with that except with replacing redirect domain name
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#6
Posting Freak
(12-03-2013 01:32 PM)Maya Wrote:  Chod which code will not work I see not problem with that except with replacing redirect domain name

You seriously cant spot the issue in the code pasted above? If not you better slow down and actually read what was posted!

If you look at my post that is what they had when I wrote that. The mod must have come and fixed the erroneous bold tags in the post.
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
invisibe_dude Offline referral

Posts: 820
Joined: May 2013
Reputation: 24

#7
Posting Freak
Chod the code has been fixed check it out
chod Offline referral

Posts: 860
Joined: Jul 2013
Reputation: 85

#8
Posting Freak
(12-04-2013 01:03 PM)invisibe_dude Wrote:  Chod the code has been fixed check it out

yes as stated in my previous post. Thanks!!
www.AdminEmpire.com
www.BlimptonTech.com - Best Free Online JavaScript tool to minify JavaScript files.
marcus_avrelius Offline referral

Posts: 2,424
Joined: May 2013
Reputation: 102

#9
Support Team
Thanks Chod for pointing out that there was an issue with that code
ivan Offline referral

Posts: 713
Joined: Jul 2013
Reputation: 6

#10
Senior Member
Many say that "Redirect URL using META TAG" is bad for SEO (search engine optimization) is it true or not?





User(s) browsing this thread: 1 Guest(s)