473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Redirect to one URL?

Hello Everyone,

Some people talk about redirecting a site URL to a single instance of an
address. That is, there is a difference to search engines between:

www.usernomics.com
http://www.usernomics.com
usernomics.com which automatically converts to http://usernomics.com

The one that gets the most inbound links to my site is
http://www.usernomics.com . So I am interested in having the other partial
addresses point to this URL.

My thought is to put the following in my .htaccess file (but I have little
idea about what I am doing):

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

I need to get this right because it could cause drastic changes to my
rankings. My hope is to improve ranking by pointing all inbound links to the
same address.

Does this seem correct?

Thanks a lot,

Bob
Apr 13 '06 #1
2 1596

"Hymer" <ergobob@sonic[REMOVE].net> wrote in message
news:44**********************@news.sonic.net...
Hello Everyone,

Some people talk about redirecting a site URL to a single instance of an
address. That is, there is a difference to search engines between:

www.usernomics.com
http://www.usernomics.com
usernomics.com which automatically converts to http://usernomics.com

The one that gets the most inbound links to my site is
http://www.usernomics.com . So I am interested in having the other partial
addresses point to this URL.

My thought is to put the following in my .htaccess file (but I have little
idea about what I am doing):

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

I need to get this right because it could cause drastic changes to my
rankings. My hope is to improve ranking by pointing all inbound links to
the
same address.

Does this seem correct?

I checked with someone who has a lot of technical expertise. He said that
this format would work best for having anything other than
http://www.usernomics.com be redirected to that URL:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.usernomics.com$ [NC]
RewriteRule ^(.*)$ http://www.usernomics.com/$1 [R,L]

Does this seem correct?

Thanks,

Bob

Apr 13 '06 #2
Hymer ha escrito lo siguiente el 13/04/2006 14:07:
Hello Everyone,

Some people talk about redirecting a site URL to a single instance of an
address. That is, there is a difference to search engines between:

www.usernomics.com
http://www.usernomics.com
usernomics.com which automatically converts to http://usernomics.com

The one that gets the most inbound links to my site is
http://www.usernomics.com . So I am interested in having the other partial
addresses point to this URL.

My thought is to put the following in my .htaccess file (but I have little
idea about what I am doing):

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

I need to get this right because it could cause drastic changes to my
rankings. My hope is to improve ranking by pointing all inbound links to the
same address.

Does this seem correct?

Thanks a lot,

Bob


Well, I was reading this
http://www.seomoz.org/articles/301-redirects.php

--
Luciano A. Ferrer
la**************@SacaDMEgmail.com
http://relojurbano.com.ar .algún día volverás.

.... una vez la vi soñar, su cama flotaba encima del mar
Apr 15 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Bob Garbados | last post by:
forgive my ignorance, as I'm new to php coming from a ms background... If I create a page named redirect.php and it's only content is: <?php header("Location: http://www.google.com"); ?>...
3
by: Paul | last post by:
I'm not getting the results I want when I use Response.Redirct in a ASP page. I enter this line of code in a asp page from domain1.com. Response.Redirect...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
1
by: Peter Kirk | last post by:
Hi there I have a program written by another company (it's a "web control" which returns a web-page: can I compare this to a servlet in the Java world?), which they think is causing problems on...
2
by: Mark Dengler | last post by:
Is it possible to do a Response.Redirect to multiple URLs? I have tried the following and it simply ignores the first redirect: Response.Redirect("test.aspx", false);...
3
by: Justin | last post by:
Hi, Im confused here over the usage of Response.Redirect and Server.Transfer. I used frameset for my work, what are the proper usages of the two methods that seems working similar.. The...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
6
by: Peter Row | last post by:
Hi, I am writing a DLL in VB.NET that implements IHttpHandler.ProcessRequest. This code calls a sub and I need to know if that sub did a response redirect or not. Specifically I need to know...
5
by: venner | last post by:
I'm having an issue with an ASP.NET website after upgrading to ASP.NET 2.0. The website makes use of a central authentication service (CAS) provided at the university I work for. Each page checks...
10
by: Eirik Eldorsen | last post by:
How can I 301 redirect www.example.com/default.aspx to www.example.com without using ISAPI filters?
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.