301 redirect

This is a discussion on "301 redirect" within the Website Planning section. This forum, and the thread "301 redirect are both part of the Planning Your Website category.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Planning Your Website > Website Planning

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Apr 4th, 2008, 07:48
SuperMember

SuperMember
Join Date: Apr 2007
Location: Sydney
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
301 redirect

Hi all,

Wondering how I redirect any page from an old domain to the index page of a new domain in htaccess??

Thanks,

Nathan.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Apr 4th, 2008, 10:48
saltedm8's Avatar
SuperMember

SuperMember
Join Date: Nov 2005
Location: here
Age: 27
Posts: 1,519
Blog Entries: 2
Thanks: 1
Thanked 11 Times in 11 Posts
Re: 301 redirect

this .htaccess will need to be placed on wherever the old domain was hosted
Quote:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

----------------------------

if you have windows hosting, try php

PHP: Select all

<?php
    Header
"HTTP/1.1 301 Moved Permanently" ); 
    
Header"Location: http://www.new-url.com" ); 
php?>
Last Blog Entry: Strict and Transitional Doctype's (Sep 12th, 2008)

Last edited by saltedm8; Apr 4th, 2008 at 10:53.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Apr 5th, 2008, 02:56
SuperMember

SuperMember
Join Date: Apr 2007
Location: Sydney
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 301 redirect

cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Apr 8th, 2008, 10:20
SuperMember

SuperMember
Join Date: Apr 2007
Location: Sydney
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Re: 301 redirect

This doesn't seem to be working. ie:

this page:
http://www.freelancetechaustralia.com.au/contact.htm (and every other page on the domain.. this is the old site)

Should redirect to:
http://www.freelance-crew.com/index.html (this is the new site, with new structure.. the old sites querystrings won't work so it all has to go to the index)

It doesn't so much matter for the contact page, but to redirect to the new site using the old query strings on most other pages will break the new site.

Thanks,

Nathan.

Last edited by nate2099; Apr 8th, 2008 at 10:24.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
301 redirect in SEO geraYY Search Engine Optimization (SEO) 26 Feb 24th, 2008 20:33
Web development: redirect... ITG Job Opportunities 0 Feb 20th, 2008 12:03
Is there a way to redirect... dudester123 JavaScript Forum 3 Sep 11th, 2006 17:24
php redirect saltedm8 PHP Forum 16 Jun 20th, 2006 19:30
redirect benbacardi PHP Forum 1 Apr 28th, 2005 18:06


All times are GMT. The time now is 20:25.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42