Contact Us Forum Rules Search Archive
WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Search Engines > Search Engine Optimization Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-29-2005, 09:44 AM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 12
tonya1 RepRank 0
Default 301 Redirect

Can someone please help me, I been tryin to do a 301 redirect for 2 days, no such luck. I have used almost every code possible. But nothing seems to work! contacted my webhost and they say it should work, I am on an apache sever, and i do have access to my htaccess file, and can use mod- rewrite... I'm trying to get all my non www pages to be www. Google has me with domain.com and www. domain.com. Can someone please help?
__________________
Proud Navy Wife
Full Moon Gift Baskets
http://www.fullmoongiftbaskets.com
Gift Baskets Made To Impress
Reply With Quote
  #2 (permalink)  
Old 08-29-2005, 05:26 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,704
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default

Can you post the code you are using in the htaccess file?

I would try this, it works for me:

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

Also once it is working correctly you have to wait for Google to update the listings.
Reply With Quote
  #3 (permalink)  
Old 08-29-2005, 09:32 PM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 12
tonya1 RepRank 0
Default

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

It stil ldoes not work, I get an 500 internal server error
__________________
Proud Navy Wife
Full Moon Gift Baskets
http://www.fullmoongiftbaskets.com
Gift Baskets Made To Impress
Reply With Quote
  #4 (permalink)  
Old 08-29-2005, 10:38 PM
Penaf's Avatar
WebProWorld Member
 

Join Date: Aug 2005
Location: Portugal
Posts: 43
Penaf RepRank 0
Default

fullmoongiftbaskets\.com ? isn't it fullmoongiftbaskets.com ?
__________________
My Radio | Wise Designs | Penaf.com
Reply With Quote
  #5 (permalink)  
Old 08-30-2005, 07:37 AM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 12
tonya1 RepRank 0
Default

it is www.fullmoongiftbaskets, but it also show fullmoongiftbaskets.com
__________________
Proud Navy Wife
Full Moon Gift Baskets
http://www.fullmoongiftbaskets.com
Gift Baskets Made To Impress
Reply With Quote
  #6 (permalink)  
Old 08-30-2005, 07:53 AM
Manpasand's Avatar
WebProWorld Pro
 

Join Date: Sep 2003
Location: SprightlyMedia.Com
Posts: 189
Manpasand RepRank 0
Default

I hope it will help

301 Redirect on a Linux Server
and
301 Redirect on a Windows Server
Reply With Quote
  #7 (permalink)  
Old 08-30-2005, 11:01 AM
WebProWorld Veteran
 

Join Date: Jan 2005
Location: Austin, Texas
Posts: 448
SnerdeyWebs RepRank 0
Default

Could you update us as there have been many suggestions and if your still having issues let us know.

I've tried http://fullmoongiftbaskets.com/ and it's working.
__________________
20% Off TemplateMonster at Snerdey Web Designs
24 Hour Live Support & Toll Free Sales Since 2003
Reply With Quote
  #8 (permalink)  
Old 08-30-2005, 06:43 PM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 12
tonya1 RepRank 0
Default

Do you mean the 301 redirect is working to the www....? I still have not been able to get it to wwork. My web host does not have a clue, and frankly i don't either. I am also trying to move domain.com/html pages as well no such luck! I need help fast.
__________________
Proud Navy Wife
Full Moon Gift Baskets
http://www.fullmoongiftbaskets.com
Gift Baskets Made To Impress
Reply With Quote
  #9 (permalink)  
Old 08-30-2005, 06:48 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,704
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default

tonya1,

I know this is an obvious questions, but are you on Apache or IIS? I would hope you are on Apache since you are using a .htaccess file. If yes please PM me the full contents of the .htaccess file so I can take a look.
Reply With Quote
  #10 (permalink)  
Old 08-30-2005, 06:49 PM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 12
tonya1 RepRank 0
Default

I hate to sound like a complete NAG!!!! But here is what i'm trying to do, so that i won't get penalized for having dup content, I want to change all pages... including domain.com/whatever.html to www.domain.com/whatever.html, it appears that my .htaccess files does not work properly, when i try it it brings up a 500 internal sever error, my site goes offline, but when i name the file just htacces with out the ., the site comes back up, but no redirect..... I've spent countless hours of trying to read up on this, no luck!!!! and to think that my webhost havent a clue. Bizhosting .com, I do have access to the .htaccess file, but i'm on shared hosting Apache Unix... Is there any other way around this(please advise)
__________________
Proud Navy Wife
Full Moon Gift Baskets
http://www.fullmoongiftbaskets.com
Gift Baskets Made To Impress
Reply With Quote
  #11 (permalink)  
Old 08-30-2005, 08:41 PM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 7
allinfree RepRank 0
Default

Hi!

New here, first post so please bare with me in case I don't have a full grasp of the situation and end up sounding like a fool -- which is really not an uncommon occurence for me...

If your hosting plan has a relatively current control panel for managing your domain, I believe it should/may have an option like "Manage Redirects", or something similar that will walk you through setting up the redirects and writing them to your htaccess file.

Again, my apologies if I sound like a complete fool/newbie/idiot/simpleton/etc....

I'm crawling back to the hole from whence I came now.

Good luck!
Reply With Quote
  #12 (permalink)  
Old 08-30-2005, 09:45 PM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 3
gilmanhunt RepRank 0
Default

You usually get a 500 error when your host has configured apache not to allow certain commands in the .htaccess file.

Try taking out the Options line from your .htaccess file. And make sure that backslash is out of the url you're redirecting to- .com not \.com.

What are you using to edit the file (please tell me notepad or some other text editor as opposed to MS Word :) )
Reply With Quote
  #13 (permalink)  
Old 08-31-2005, 01:05 AM
WebProWorld New Member
 

Join Date: Aug 2005
Location: Olympia, WA
Posts: 2
sryuuza RepRank 0
Default

Ok, here goes my attempt... not sure what you have in your .htaccess file... and just a tip... the .htaccess file doesnt work without the . in front of it...

Here is how you do it...

Code:
RewriteCond %{HTTP_HOST} !^www [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
hopefully that works... also note that i do not use the "Options +FollowSymLinks" at all...[/code]
Reply With Quote
  #14 (permalink)  
Old 08-31-2005, 07:40 AM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 12
tonya1 RepRank 0
Default

Well I have just been told that my webhost does not allow 301 redirects, it took them a whole 5 days to tell me that, they dident even know, so is there any other way?
__________________
Proud Navy Wife
Full Moon Gift Baskets
http://www.fullmoongiftbaskets.com
Gift Baskets Made To Impress
Reply With Quote
  #15 (permalink)  
Old 08-31-2005, 12:45 PM
WebProWorld New Member
 

Join Date: Aug 2005
Posts: 3
gilmanhunt RepRank 0
Default

You betcha.
Can you use PHP scripts on your host?

If so, you can use the .htaccess file to automatically prepend a php script to every page, assuming that's allowed.

This script could print out the http 301 error as a header, and redirect your page that way. There's a link above to 301 redirects on Linux that'll show you the php code you need for it. If you need help setting it up, feel free to PM me.
__________________
-=-=-=-=-=
Russ Gilman-Hunt

http://www.arghwebworks.com/
PHP Programmer, Apache Administrator
Reply With Quote
  #16 (permalink)  
Old 08-31-2005, 01:07 PM
sytemaker's Avatar
WebProWorld Member
 

Join Date: May 2004
Location: Maidenhead, Berkshire, UK
Posts: 59
sytemaker RepRank 0
Default

Quote:
Originally Posted by tonya1
Well I have just been told that my webhost does not allow 301 redirects, it took them a whole 5 days to tell me that, they dident even know, so is there any other way?
Go and find another host. Not allowing 301 redirects is utter nonsense and they are unlikely to keep any serious webdeveloper on their books.
__________________
Rolf
-------------------------------
sytemaker.com ltd.
UK web development
http://www.sytemaker.com/
Reply With Quote
  #17 (permalink)  
Old 08-31-2005, 04:12 PM
incrediblehelp's Avatar
Moderator
WebProWorld Moderator
 

Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,704
incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4incrediblehelp RepRank 4
Default

Quote:
Originally Posted by sytemaker
Quote:
Originally Posted by tonya1
Well I have just been told that my webhost does not allow 301 redirects, it took them a whole 5 days to tell me that, they dident even know, so is there any other way?
Go and find another host. Not allowing 301 redirects is utter nonsense and they are unlikely to keep any serious webdeveloper on their books.
Agreed
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum
Tags: ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.2.0