Irish SEO,  Marketing & Webmaster Discussion

 
ThinkGeek - Cool Stuff for Geeks and Technophiles

Redirecting your old domain using mod_rewrite

This is a discussion on Redirecting your old domain using mod_rewrite within the Server / Technical Administration Tips and Queries forums, part of the Webmaster Help category; For a number of very boring reasons I had setup a forum for browse.ie which I then decided to get ...


Go Back   Irish SEO, Marketing & Webmaster Discussion > Webmaster Help > Server / Technical Administration Tips and Queries

Register Forum Rules FAQDonate Members List Calendar Search Today's Posts Mark Forums Read


Notices

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-02-2006, 02:41 AM
blacknight's Avatar
Web Slave
Recent Blog:
 
Join Date: Jan 2006
Location: Ireland
Posts: 6,521
blacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to beholdblacknight is a splendid one to behold
Send a message via ICQ to blacknight Send a message via AIM to blacknight Send a message via MSN to blacknight
Talking Redirecting your old domain using mod_rewrite

For a number of very boring reasons I had setup a forum for browse.ie which I then decided to get rid of.

I didn't want to lose any backlinks to it etc., so rather than remove it completely I first pointed it here, but I knew that I could get into trouble with G for duplicate content.

The simplest and most graceful solution was to use Apache mod_rewrite to redirect the traffic from the original hostname to the new one:

Code:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} forum.browse.ie$
RewriteRule ^(.+) http://forum.search.ie/$1 [L,R=301]
So if you arrive here using the old hostname you will be redirected to the new one gracefully
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 (permalink)  
Old 01-02-2006, 02:47 AM
Blue Jumper
 
Join Date: Jan 2006
Posts: 61
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
cr8or will become famous soon enough
Default

I had to do that on one of my old websites .. google did'nt seem to mind one bit.
__________________
Is maith lum Geansai Gorm, Freelance Developer, Bargain Alerts,
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

Tags
domain, modrewrite, redirecting

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Sponsored links

Paid On Results


All times are GMT +1. The time now is 12:12 PM.


Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Hosted in Ireland by Blacknight - Test your ISP |Irish Hosting Directory| Armchair.ie|Logo by Eden Web Design|Avatars by Afterglow |Latest Blog Entries | VPS HostingAd Management by RedTyger

Search Engine Friendly URLs by vBSEO 3.2.0