Real Estate Forums

Coding HTML, ASP, PHP, JAVA MYSQL and more. All coding questions should be asked here.

Reply
 
Thread Tools Display Modes
Old 02-09-2005, 04:49 PM
ResaleBroker's Avatar
ResaleBroker ResaleBroker is offline
Real Estate Webmaster
 
Join Date: Jun 2004
Posts: 4,727
ResaleBroker is on a distinguished road
Default Apache Mod_rewrite: Redirecting Domains

If you are on an Apache Server you can redirect one domain to another with this code in your .htaccess file:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain1\.com [NC] 
RewriteRule ^(.*)$ http://domain2.com/$1 [R=301,L]
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

For our members

Main Sections

IDX Coverage Areas

Spiders Welcome

All times are GMT -7. The time now is 12:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.