Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Google Forum


You are currently viewing our The Google Forum as a guest. Please register to participate.
Login



Reply
Old 08-30-2005, 07:23 PM 301 redirects
Average Talker

Posts: 19
Trades: 0
Can somebody please explain to me how to do a 301 redirect? I have an old site, and I want to redirect any old traffic from that site to my current one.
biofarmag is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-31-2005, 04:21 AM
shabbirbhimani's Avatar
Application Developer

Posts: 1,004
Name: Shabbir Bhimani
Location: at Go4Expert.com
Trades: 0
redirect 301 http://www.old.com http://www.new.com
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
shabbirbhimani is offline
Reply With Quote
View Public Profile Visit shabbirbhimani's homepage!
 
Old 08-31-2005, 05:00 AM
Ultra Talker

Posts: 286
Trades: 0
Code:
RewriteEngine on 
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC]
RewriteRule ^(.*) http://www.yourdomain.com/$1 [L,R=301]
add this code on your htaccess file
__________________
Alpha
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
bentong is offline
Reply With Quote
View Public Profile
 
Old 08-31-2005, 04:22 PM
Average Talker

Posts: 19
Trades: 0
I don't have an htaccess file
biofarmag is offline
Reply With Quote
View Public Profile
 
Old 08-31-2005, 05:24 PM
Average Talker

Posts: 19
Trades: 0
Correction: I DIDN'T have one. I wrote one, and ftp'd it to the directory as .htaccess with the redirect 301 http://www.old.com http://www.new.com written in it.

It doesn't work.

Given that the directory didn't have an .htaccess file, could that mean that the server doesn't utilise .htaccess files? If not, is there a spider-friendly way of redirecting all traffic from that old site?
biofarmag is offline
Reply With Quote
View Public Profile
 
Old 09-04-2005, 09:14 PM
icon kid's Avatar
Junior Talker

Posts: 3
Trades: 0
Quote:
Given that the directory didn't have an .htaccess file, could that mean that the server doesn't utilise .htaccess files?
Not necessarily -- the default configuration for the domains on most servers don't contain a .htaccess file -- they come naked and you have to create and configure such files just as you did. One thing to regard (which may have already been handled properly by your FTP program) is to make sure that the .htaccess file has been uploaded in ASCII format as opposed to binary format. Most FTP programs can automatically detect which format a given file should be uploaded in, but also will have a setting to force it to be uploaded in the format you choose. Other than that, the best thing to do is consult your Web host about this problem because this is something that should work properly on any Unix server.
icon kid is offline
Reply With Quote
View Public Profile
 
Old 09-05-2005, 12:55 AM
Average Talker

Posts: 19
Trades: 0
I'm waiting for a reply from the host. Unfortunately, their offices are in New Orleans, which means I have to wait a bit.

In the meantime, I've put a page up there which says "please click here to be redirected", ie. put in a clickable link to the new page. THAT doesn't cause any google problems, does it?
biofarmag is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to 301 redirects
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25129 seconds with 12 queries