Click here to get back home

Redirect

 HomeNewsGroups | Search | About
 alt.internet.search-engines    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Redirect BobK 03-04-2008
Posted by BobK on March 4, 2008, 9:34 am
Please log in for more thread options
Hello Everyone,

I have all forms of my URL redirected to a single version of the URL
using:

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

Do you also redirect your index file so that
http://www.usernomics.com/index.html redirects to
http://www.usernomics.com ?

Is this worth doing? If so, how would you do that - just for the
index.html alone?

Thanks,

Bob



Posted by John Bokma on March 4, 2008, 10:09 am
Please log in for more thread options

> Hello Everyone,
>
> I have all forms of my URL redirected to a single version of the URL
> using:
>
> RewriteEngine On
> RewriteCond % !^www\.usernomics\.com$
> RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]

Maybe a bit more readable:
RewriteCond % !=www.usernomics.com
RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]

Personally, I would drop the www:


Maybe a bit more readable:
RewriteCond % !=usernomics.com
RewriteRule (.*) http://usernomics.com/$1 [R=301,L]

> Do you also redirect your index file so that
> http://www.usernomics.com/index.html redirects to
> http://www.usernomics.com ?

I recently did for a site, which also had index2.html, index3.html after I
had removed the horrible frame set they were using. I would redirect
index.html if I had used links to index.html on my site, or others would
link to my site that way.

> Is this worth doing? If so, how would you do that - just for the
> index.html alone?

You can always do something like:

RewriteRule ^index\.html$ http://usernomics.com/ [R=301,L]
RewriteRule ^(.+)/index\.html$ http://usernomics.com/(.+)/ [R=301,L]

to catch index.html deeper down.

(all untested).

--
John Bokma http://johnbokma.com/

Posted by BobK on March 4, 2008, 12:02 pm
Please log in for more thread options
>> I have all forms of my URL redirected to a single version of the
>> URL
>> using:
>>
>> RewriteEngine On
>> RewriteCond % !^www\.usernomics\.com$
>> RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]
>
> Maybe a bit more readable:
> RewriteCond % !=www.usernomics.com
> RewriteRule (.*) http://www.usernomics.com/$1 [R=301,L]
>
> Personally, I would drop the www:
>
>
> Maybe a bit more readable:
> RewriteCond % !=usernomics.com
> RewriteRule (.*) http://usernomics.com/$1 [R=301,L]
>
>> Do you also redirect your index file so that
>> http://www.usernomics.com/index.html redirects to
>> http://www.usernomics.com ?
>
> I recently did for a site, which also had index2.html, index3.html
> after I
> had removed the horrible frame set they were using. I would redirect
> index.html if I had used links to index.html on my site, or others
> would
> link to my site that way.
>
>> Is this worth doing? If so, how would you do that - just for the
>> index.html alone?
>
> You can always do something like:
>
> RewriteRule ^index\.html$ http://usernomics.com/
> [R=301,L]
> RewriteRule ^(.+)/index\.html$ http://usernomics.com/(.+)/
> [R=301,L]
>
> to catch index.html deeper down.
>
> (all untested).
>


Hello John,

Thanks for codes.

On changing the main URL, I have really good SERPS for
http://www.usernomics.com right now. I worry about changing to
http://usernomics.com in terms of loosing juice. I don't see a
compelling reason to change at this point. Do you?

On the index.html issue, I do not have any links to index.html but
Google does see both pages. There are a few (12) backlinks to
index.html but nothing major. My thinking was to redirect index.html
just so Google will not divide the juice to the main URL. Does it make
sense to do that for that reason? I don't want to mess-up my good
SERPS at this point.

Thanks Again,

Bob




Posted by John Bokma on March 4, 2008, 1:45 pm
Please log in for more thread options

> On changing the main URL, I have really good SERPS for
> http://www.usernomics.com right now. I worry about changing to
> http://usernomics.com in terms of loosing juice. I don't see a
> compelling reason to change at this point. Do you?

It wouldn't harm them either way (the 301 moves the PageRank so to speak).
I preferred to drop the www on my sites, because I like it without www.


> On the index.html issue, I do not have any links to index.html but
> Google does see both pages. There are a few (12) backlinks to
> index.html but nothing major. My thinking was to redirect index.html
> just so Google will not divide the juice to the main URL. Does it make
> sense to do that for that reason? I don't want to mess-up my good
> SERPS at this point.

I would redirect index.html to /, especially if you see both URLs (with
and without index.html) in Google.

--
John Bokma http://johnbokma.com/

Similar ThreadsPosted
301 redirect January 31, 2005, 11:20 am
Redirect? July 31, 2005, 4:15 pm
Redirect March 17, 2006, 2:23 pm
301 redirect June 3, 2006, 4:08 pm
301 redirect or .... what? June 22, 2006, 8:34 am
Redirect? June 22, 2007, 11:04 am
301 Redirect Or What Is This? June 30, 2007, 7:50 pm
Hmm redirect not working? December 27, 2004, 9:31 pm
Another redirect question? January 27, 2005, 8:04 pm
Solution for 302 redirect? March 21, 2005, 4:14 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap