Get Paid to Participate - up to $1 per post!     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Website Development & Design > Any help on how to do the proper 301 redirect for a parked domain?
forgot password?



Reply


Old
  Post #1 (permalink)   04-24-2014, 10:09 PM
HD Amateur
 
Join Date: May 2010
Location: Los Angeles, Costa Rica
Posts: 88
Send a message via ICQ to dwhs Send a message via Skype™ to dwhs

Status: dwhs is offline
I moved my old site to the new domain and have parked the old site over the new domain.

Any ideas how to do the proper 301 redirect so the old site redirects each page to the new site.

So: http://dwhs.net/web-hosting-plans.htm
Redirect to: http://webhost.pro/web-hosting-plans.htm

So far I just have:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !=webhost.pro [NC]

Thanks,
Charley
__________________
Charles - With WebHost.pro since 2001.
WebHost.pro - Web Hosting Dedicated Servers VPS Add your host here
 
 


Old
  Post #2 (permalink)   04-24-2014, 10:53 PM
HD Newbie
 
Join Date: May 2008
Location: India
Posts: 47

Status: Kailash is offline
Try following .htaccess rewrite rules:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^dwhs.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.dwhs.net$
RewriteRule (.*)$ http://webhost.pro/$1 [R=301,L]
 
 


Old
  Post #3 (permalink)   06-20-2014, 10:27 PM
HD Amateur
 
Join Date: May 2010
Location: Los Angeles, Costa Rica
Posts: 88
Send a message via ICQ to dwhs Send a message via Skype™ to dwhs

Status: dwhs is offline
Quote:
Originally Posted by Kailash View Post
Try following .htaccess rewrite rules:

Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^dwhs.net$ [OR]
RewriteCond %{HTTP_HOST} ^www.dwhs.net$
RewriteRule (.*)$ http://webhost.pro/$1 [R=301,L]
I went with:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !=webhost.pro [NC]
RewriteRule ^(.*)$ http://webhost.pro/$1 [R=301,L]

It seems to redirect everything o.k. and Google is happy.
__________________
Charles - With WebHost.pro since 2001.
WebHost.pro - Web Hosting Dedicated Servers VPS Add your host here
 
 


Old
  Post #4 (permalink)   12-14-2014, 02:31 AM
HD Newbie
 
Join Date: Jan 2014
Posts: 2

Status: Noun Host is offline
Hello,
If you are interested, I can create your page free of cost. You can PM me. Thanks.
__________________
- Noun Host - We ensure quality - Built Your Website for the Future.
- We Provide Only [Premium Shared Hosting] & [Ultimate Reseller Hosting]
- Noun Host Sell only Linux Based RAID-10 Disk Space - www.NounHost.com
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: