[advanced search]
Results from the most recent live auction are here.
22 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Domain Name Industry Newsletter
Go Back   NamePros.Com > Design and Development > Programming
User Name
Password

Old 04-12-2006, 10:54 PM   · #1
ZuraX
Senior Member
 
ZuraX's Avatar
 
Name: John
Location: Pennsylvania USA
Trader Rating: (19)
Join Date: Apr 2003
Posts: 2,662
NP$: 179.45 (Donate)
ZuraX is a name known to allZuraX is a name known to allZuraX is a name known to allZuraX is a name known to allZuraX is a name known to allZuraX is a name known to all
Help with redirecting please?

I have a few dozen domains I wish to now point to one site.
I have given up on all but one or two of my sites now since I have way less time to come online.

In my .htaccess I have

Options +FollowSymLinks
RewriteEngine on
Redirect 301 / http://www.mymaindomain.net/

which works. But /whatever or /whatever.html(.php etc) still looks for a 404 error. Is there a way to redirect Everything to http://www.mymaindomain.net/?

Like http://www.olddomain.com or http://www.olddomain.com/whatever.php to just http://www.mymaindomain.net/?

I want to set up one account on my VPS for olddomain.com and park all my old domaisn on top of it and they all use the same .htaccess and redirect to http://www.mymaindomain.net/


Please register or log-in into NamePros to hide ads
__________________
Please visit my city.
ZuraX is offline   Reply With Quote
Old 04-12-2006, 11:55 PM   · #2
weblord
www.1weblord.com
 
weblord's Avatar
 
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Trader Rating: (244)
Join Date: Dec 2005
Posts: 21,398
NP$: 21635.83 (Donate)
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
Autism Protect Our Planet
why not add 1 addon domain in your cpanel account (if yours is a cpanel) and other domains as parked?
__________________
★★★ ESTIBOT.COM Free Domain Appraisal, Keyword Tools, Available Domains ★★★
PHP Link Directory Script phpLD Templates Category Dump
♥♥Clean Toolbar♥♥
I DNKitchen.com and Chef Patrick ---> Domain News

weblord is offline  
  Reply With Quote
Old 04-13-2006, 12:09 AM   · #3
SecondVersion
while ($awake){ code(); }
 
SecondVersion's Avatar
 


Name: Eric
Location: Kentucky
Trader Rating: (142)
Join Date: Mar 2005
Posts: 4,268
NP$: 1152.00 (Donate)
SecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond reputeSecondVersion has a reputation beyond repute
Member of the Month
MOTM September 2005 Save a Life Child Abuse 9/11/01 :: Never Forget Baby Health Marrow Donor Program AIDS/HIV Breast Cancer Cystic Fibrosis Ethan Allen Fund Animal Cruelty Ethan Allen Fund Ethan Allen Fund Cancer Alzheimer's Protect Our Planet
Code:
RewriteEngine ON RewriteCond %{HTTP_HOST} ^domain\.com RewriteRule ^(.*)$ http://www.domain2.com/$1 [R=301,L]
__________________

SecondVersion.com - The Personal Blog of SecondVersion
Domain Name Portfolio - Get your free copy. - Version 1.0.3 now available!!
SecondVersion is offline   Reply With Quote
Old 04-13-2006, 12:11 AM   · #4
bentong
Hari ng Sablay
 
bentong's Avatar
 
Name: Oinq.com
Location: PH
Trader Rating: (169)
Join Date: Jun 2005
Posts: 3,508
NP$: 652.53 (Donate)
bentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond reputebentong has a reputation beyond repute
VA Tech Memorial Ethan Allen Fund AIDS/HIV Save a Life Protect Our Planet Protect Our Planet
you can also try this..
Quote:
RewriteEngine On
RewriteRule ^(.*)$ http://www.yournewmaindomain.com/$1 [R=301,L]

__________________
Alpha Web Directory
bentong is offline  
  Reply With Quote
Old 04-13-2006, 12:24 AM   · #5
weblord
www.1weblord.com
 
weblord's Avatar
 
Name: William R. Nabaza - williamrnabaza.com
Location: Philippines - www.Nabaza.com
Trader Rating: (244)
Join Date: Dec 2005
Posts: 21,398
NP$: 21635.83 (Donate)
weblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatnessweblord Has achieved greatness
Autism Protect Our Planet
Originally Posted by bentong
you can also try this..


if you also want the subdomains.domain.com to end up pointing to one domain login to whm and click on dns functions click on "edit dns zone" and then edit the said domain (addon domain) and then add *.yourdomain.com. A 111.111.111.111 ,make sure it ends with a "." so it's fully qualified domain be sure to replace 111.111.111.111 with ip address assigned to your account.
__________________
★★★ ESTIBOT.COM Free Domain Appraisal, Keyword Tools, Available Domains ★★★
PHP Link Directory Script phpLD Templates Category Dump
♥♥Clean Toolbar♥♥
I DNKitchen.com and Chef Patrick ---> Domain News


Last edited by weblord : 04-13-2006 at 12:29 AM.
weblord is offline  
  Reply With Quote
Old 04-13-2006, 07:56 AM   · #6
ZuraX
Senior Member
 
ZuraX's Avatar
 
Name: John
Location: Pennsylvania USA
Trader Rating: (19)
Join Date: Apr 2003
Posts: 2,662
NP$: 179.45 (Donate)
ZuraX is a name known to allZuraX is a name known to allZuraX is a name known to allZuraX is a name known to allZuraX is a name known to allZuraX is a name known to all
Originally Posted by bentong
you can also try this..



That works for just http://www.domain.com but not for http://www.domain.com/test which doesnt exist...

Originally Posted by weblord
why not add 1 addon domain in your cpanel account (if yours is a cpanel) and other domains as parked?




I dont want Google to punish me for dup content...
__________________
Please visit my city.
ZuraX is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

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
Forum Jump


Site Sponsors
Website Header Design Website Header Design Website Header Design
Advertise your business at NamePros
All times are GMT -7. The time now is 09:39 AM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0