Webmaster Forum

Webmaster Forum (http://www.v7n.com/forums/index.php)
-   Coding Forum (http://www.v7n.com/forums/forumdisplay.php?f=16)
-   -   301 Redirect Assistance (http://www.v7n.com/forums/showthread.php?t=295214)

sfod_d223 01-20-2012 09:40 AM

301 Redirect Assistance
I've been going over the domain that I have listed in my Google Webmaster Tools and have found that I get a note.

The note roughly says that I should make a "301 redirect" to capitalize from the www of the domain as well as the base domain itself.

Does anyone know how I can go about letting Google see both of these urls as one site with a "301" redirect?

Thanks in advance..

deryaSavas 01-20-2012 11:11 PM

You can check for great information online for redirection,
here's what I found online htaccess redirect

Redirect to www

Create a .htaccess file with the below code, it will ensure that all requests coming in to domainDOTcom will get redirected to wwwDOTdomainDOTcom
The .htaccess file needs to be placed in the root directory of your website (i.e the same directory where your index file is placed)
PHP Code:

Options +FollowSymlinks
RewriteEngine on
%{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc] 

works on Linux servers having the Apache Mod-Rewrite module enabled
this webpage http://www.webconfs.com/how-to-redirect-a-webpage.php has most useful information if you are running a different server.
Also Google webmasters tool will allow you to set your preferred domain
sign in to webmasters tool,
and in it under site configuration option you will have another option for setting
and there you see preferred domain options
(I use this option all the time)

sfod_d223 01-24-2012 02:00 PM

Thanks for the links and the code for the htaccess file. Will place it later to see if some of the website graders can see it.

All times are GMT -7. The time now is 12:10 PM.