Thread: 301 redirect
View Single Post
  #2 (permalink)  
Old Apr 4th, 2008, 10:48
saltedm8's Avatar
saltedm8 saltedm8 is offline
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,238
Blog Entries: 1
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to saltedm8
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?>
__________________
My Recipe forum...don't click here

Last edited by saltedm8; Apr 4th, 2008 at 10:53.
Reply With Quote