NatureScapes.net

Contact Us Membership Terms of Use Links
Login | Search | FAQ

Content on this page requires a newer version of Adobe Flash Player.

Get Adobe Flash player

Adding a 301 redirect to my website

Discussion on general topics that impact us all as photographers.
Moderators: Royce Howland, Greg Downing, E.J. Peiker

Adding a 301 redirect to my website

Postby Greg Russell on Fri Nov 06, 2009 7:08 pm

I've been working on SEO for my website, and I used the free service Website Grader as a preliminary test to see what needs to be done. They said that one thing I need to do is to add a 301 redirect to my code. If you don't know, basically a 301 redirect takes a potential viewer to the website whether they type in the "www." or not.

I looked this up, and although it looks complicated, I think I can do it. But, if I type in my website, simply "mywebsite.com" it takes me to my website, "www.mywebsite.com". So, my question is, is a 301 redirect already in place and Website Grader didn't recognize it?

My site is hosted through BlueHost, if that matters. Also, as I said, this looks complicated, but if anyone knows of a simple way to do it, I'd appreciate it.

Thanks, and cheers!
---------------------------
Greg Russell/Alpenglow Images
Please visit my blog (updated regularly).
User avatar
Greg Russell
Moderator
 
Posts: 3579
Joined: 02 Mar 2006
Location: Riverside, CA, USA
Member #: 01301

Postby Jens Peermann on Fri Nov 06, 2009 8:21 pm

Most likely, your browser remembers the URL from a previous session and completes it automatically. If it is the result of a redirect, the URL in the address bar will read "http://mywebsite.com" instead of "http://www.mywebsite.com".
Home is where the heart is - in my pictures.

It is safe to program a computer with common sense. The first function to fail is the start-up and no further harm will be done.
User avatar
Jens Peermann
Forum Contributor
 
Posts: 2592
Joined: 05 Apr 2004
Location: Carson City, Nevada

Postby Hikin Mike on Fri Nov 06, 2009 8:31 pm

I also use Website Grader. I do suggest adding a 301 redirect so you get "credit" for both sites.

I'm not familiar with BlueHost, but there should be a control panel to make a '.htaccess' to add a 301. If not, you can always use a text editor like 'Notepad ++' and do it yourself....

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

Then upload that file to your root directory.

EDIT: Of course you'll have to change the 'mywebsite' to your's!
Mike Matenkosky
Nature Photography - Images in the Backcountry
"The heavens declare the glory of God; The skies proclaim the work of his hands" -Ps 19:1
User avatar
Hikin Mike
Forum Contributor
 
Posts: 1166
Joined: 04 May 2005
Location: Atwater, Ca


Return to Photography Topics