 |

08-29-2005, 09:44 AM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 12
|
|
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?
|

08-29-2005, 05:26 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,704
|
|
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.
|

08-29-2005, 09:32 PM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 12
|
|
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
|

08-29-2005, 10:38 PM
|
 |
WebProWorld Member
|
|
Join Date: Aug 2005
Location: Portugal
Posts: 43
|
|
fullmoongiftbaskets\.com ? isn't it fullmoongiftbaskets.com ?
|

08-30-2005, 07:37 AM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 12
|
|
it is www.fullmoongiftbaskets, but it also show fullmoongiftbaskets.com
|

08-30-2005, 07:53 AM
|
 |
WebProWorld Pro
|
|
Join Date: Sep 2003
Location: SprightlyMedia.Com
Posts: 189
|
|
|

08-30-2005, 11:01 AM
|
|
WebProWorld Veteran
|
|
Join Date: Jan 2005
Location: Austin, Texas
Posts: 448
|
|
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.
|

08-30-2005, 06:43 PM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 12
|
|
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.
|

08-30-2005, 06:48 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,704
|
|
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.
|

08-30-2005, 06:49 PM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 12
|
|
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)
|

08-30-2005, 08:41 PM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 7
|
|
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!
|

08-30-2005, 09:45 PM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 3
|
|
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 :) )
|

08-31-2005, 01:05 AM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Location: Olympia, WA
Posts: 2
|
|
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]
|

08-31-2005, 07:40 AM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 12
|
|
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?
|

08-31-2005, 12:45 PM
|
|
WebProWorld New Member
|
|
Join Date: Aug 2005
Posts: 3
|
|
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.
|

08-31-2005, 01:07 PM
|
 |
WebProWorld Member
|
|
Join Date: May 2004
Location: Maidenhead, Berkshire, UK
Posts: 59
|
|
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.
|

08-31-2005, 04:12 PM
|
 |
Moderator
|
|
Join Date: Jan 2004
Location: Live in Cincy Now
Posts: 7,704
|
|
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
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|