Internet Marketing Forum

Internet Marketing Forum


For Webmasters and Entrepreneurs
|
Welcome, Guest. Please login or register.
Did you miss your activation email?
May 17, 2012, 12:59:52 PM

Login with username, password and session length

In the day of prosperity be joyful, but in the day of adversity consider.


- King Solomon

|-   Internet Marketing Forum > Online Business Discussions > Website Design and Maintenance > Administration
+  

Redirecting domain with .htaccess

0 Members and 1 Guest are viewing this topic.
Pages: [1] Reply to Thread
Author Topic: Redirecting domain with .htaccess  (Read 667 times)
OfflineChrysalis
Beginner
Chrysalis is on a distinguished road
Joined: Oct 2007
Posts: 27


Avatar of Chrysalis

View Chrysalis\s Profile
Gender: MaleSagittarius United States
notepad Mar 05, 2009, 03:17:08 PM #1
I bought example.com and want to forward everything to mysite.com so here is the .htaccess code i put at example.com

ErrorDocument 404 http://example.com
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example$
RewriteRule ^/?$ \"http\\:\\/\\/www\\.mysite\\.com\" [R=301,L]

seems to be working ..

can anybody see any errors?

Pages: [1] Reply to Thread


Code4Gold Internet Marketing Forum © 2006-2011 Resdaz Media LLC - All Rights Reserved
Forum Software Powered by SMF - © 2001-2008, Lewis Media. All Rights Reserved.