NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page .htaccess + Domain Parking

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 07-03-2005, 04:04 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



.htaccess + Domain Parking


Hi

Does anyone know what to add into a .htaccess file so that parked domains can be pointed to certain files

e.g. http://www.domain1.com is a domain parked by a client. This domain needs to point to http://www.maindomain/parking/domain1.com

It needs to be a dynamic .htaccess so that it can handle multiple redirects without having to add them to the .htaccess file.

Thanks in advance for any guidance,

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-03-2005, 04:07 PM   #2 (permalink)
Account Suspended
Join Date: Jul 2005
Posts: 172
Virtua is an unknown quantity at this point
 



I think i know it !!! i will get back to you when i get that file from my computer
Virtua is offline  
Old 07-03-2005, 04:19 PM THREAD STARTER               #3 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



Excellent! Eagerly awaiting your reply!!!

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-03-2005, 04:35 PM   #4 (permalink)
Account Suspended
Join Date: Jul 2005
Posts: 172
Virtua is an unknown quantity at this point
 



wistow .. sorry i can't find the file maybe i deleted it ..

Sorry maybe someone will help you
Virtua is offline  
Old 07-03-2005, 04:37 PM   #5 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
Join Date: Jan 2005
Location: UK
Posts: 2,408
PoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nicePoorDoggie is just really nice
 



grr... I did know this - its like mod_rewrite or something! sorry
PoorDoggie is offline  
Old 07-03-2005, 04:43 PM THREAD STARTER               #6 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



Yeah it is mod_rewrite but I need a dynamic solution as I am building a domain parking program similar to sedo/domain sponsor etc and want to handle all parked domains using .htaccess if possible

Thanks in advance for any help you can provide,

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-03-2005, 05:17 PM   #7 (permalink)
Pro Coder & Designer
 
aween's Avatar
Join Date: Apr 2005
Location: Netherlands
Posts: 967
aween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really niceaween is just really nice
 



RewriteEngine On
RewriteRule ^parking/(.*)/ park.php?domain=$1

they point to parking/domain.com

and with parking.php?domain=$1
you can retrieve any additional data from the database.
__________________
aween web development
aween is offline  
Old 07-03-2005, 05:21 PM THREAD STARTER               #8 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



I already have that.

I need to be able to point http://www.DOMAIN.com to parking/DOMAIN.com just like you can with sedo etc

Thanks anyway

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-04-2005, 02:48 AM THREAD STARTER               #9 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



I have been advised that this is not possible by using htaccess 100%, does anyone have any working examples/ideas of how this can be done?

I'm at my wits end, I will offer the domain name jdlt.net to anyone who comes up with an example that works 100% how I want it to.

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-04-2005, 03:15 AM   #10 (permalink)
NamePros Regular
Join Date: Mar 2004
Posts: 633
theparrot is a jewel in the roughtheparrot is a jewel in the roughtheparrot is a jewel in the rough
 



Do you have access to the main config file or are you trying to make this work with a shared hosting account?
__________________
Need a break? Check out TheDamnBlog.com
Free $6.95 directi accounts at Directi Name Bin
Instant free $8.95 eNom accounts at Dncube.com
theparrot is offline  
Old 07-04-2005, 03:26 AM THREAD STARTER               #11 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



It's currently on a shared hosting account, is this a problem?

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-04-2005, 03:41 AM   #12 (permalink)
NamePros Regular
Join Date: Mar 2004
Posts: 633
theparrot is a jewel in the roughtheparrot is a jewel in the roughtheparrot is a jewel in the rough
 



Originally Posted by wistow
It's currently on a shared hosting account, is this a problem?

Craig
yes
__________________
Need a break? Check out TheDamnBlog.com
Free $6.95 directi accounts at Directi Name Bin
Instant free $8.95 eNom accounts at Dncube.com
theparrot is offline  
Old 07-04-2005, 03:46 AM THREAD STARTER               #13 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



So when I get a dedicated server what do I need to do?

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-04-2005, 09:29 AM   #14 (permalink)
NamePros Regular
Join Date: Feb 2004
Location: Student @ UConn
Posts: 411
gamex has a spectacular aura aboutgamex has a spectacular aura about
 



This article help at all? Sorry if it doesnt:

http://mitch.lockergnome.net/blog/_a...26/285119.html

Joe
__________________
Joe
gamex is offline  
Old 07-04-2005, 09:34 AM THREAD STARTER               #15 (permalink)
NamePros Regular
Join Date: May 2004
Posts: 316
wistow is an unknown quantity at this point
 



Thanks for the reply, but I read that article already

Craig
__________________
UK Deal Finder
wistow is offline  
Old 07-04-2005, 09:46 AM   #16 (permalink)
NamePros Regular
Join Date: Mar 2004
Posts: 633
theparrot is a jewel in the roughtheparrot is a jewel in the roughtheparrot is a jewel in the rough
 



Originally Posted by wistow
So when I get a dedicated server what do I need to do?
????: NamePros.com http://www.namepros.com/programming/103859-htaccess-domain-parking.html

Craig

bind an ip and instead use ip based hosting instead of name based hosting. Then in your code parse out the Host: part of the http headers and act on them accordingly.
__________________
Need a break? Check out TheDamnBlog.com
Free $6.95 directi accounts at Directi Name Bin
Instant free $8.95 eNom accounts at Dncube.com
theparrot is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Redemption Grace Period TopNames.com Domain Newbies 1 07-31-2007 12:04 PM
Parkingprimer / <-- Help??? / Domain Parking faisj PPC / CPC / CPM Programs 15 03-24-2005 08:26 PM
Registering a .EU domain mole ccTLD Discussion 1 12-18-2004 05:41 AM
Domain Names ( Registered / 1997-2004 ) SWD Domain Appraisals 9 10-24-2004 09:14 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 09:50 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger