Webmaster Forum

Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
Thread Tools Display Modes
Share |
  #1  
Old 01-20-2012, 09:40 AM
sfod_d223's Avatar
sfod_d223 sfod_d223 is offline
Contributing Member
 
Join Date: 12-07-06
Location: Florida
Posts: 1,005
iTrader: 0 / 0%
Unhappy 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..
 
Reply With Quote

Advertisement

Advertisement

  #2  
Old 01-20-2012, 11:11 PM
deryaSavas's Avatar
deryaSavas deryaSavas is offline
Senior Member
 
Join Date: 11-14-11
Posts: 292
iTrader: 0 / 0%
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
rewritecond 
%{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)

Last edited by snakeair; 01-21-2012 at 03:27 AM.
 
Reply With Quote
  #3  
Old 01-24-2012, 02:00 PM
sfod_d223's Avatar
sfod_d223 sfod_d223 is offline
Contributing Member
 
Join Date: 12-07-06
Location: Florida
Posts: 1,005
iTrader: 0 / 0%
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.
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I need some assistance, please. Inkybro Marketing Forum 11 10-20-2010 10:17 AM
SEO Assistance lunarstudio SEO Forum 13 07-22-2009 02:07 AM
Looking for SEO assistance kade119 SEO Forum 0 08-22-2008 10:05 AM
In need of help and assistance JumpShopping SEO Forum 1 06-30-2006 04:45 PM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:25 AM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC