[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 07-03-2005, 03:04 PM   #1 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

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
wistow is offline  
Old 07-03-2005, 03:07 PM   #2 (permalink)
Account Suspended
 
Join Date: Jul 2005
Posts: 172
155.00 NP$ (Donate)

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, 03:19 PM   #3 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

wistow is an unknown quantity at this point


Excellent! Eagerly awaiting your reply!!!

Craig
wistow is offline  
Old 07-03-2005, 03:35 PM   #4 (permalink)
Account Suspended
 
Join Date: Jul 2005
Posts: 172
155.00 NP$ (Donate)

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, 03:37 PM   #5 (permalink)
Soon to be RICHdoggie!
 
PoorDoggie's Avatar
 
Join Date: Jan 2005
Location: UK
Posts: 2,390
316.50 NP$ (Donate)

PoorDoggie 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, 03:43 PM   #6 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

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
wistow is offline  
Old 07-03-2005, 04:17 PM   #7 (permalink)
Pro Coder & Designer
 
xlusive's Avatar
 
Join Date: Apr 2005
Location: Netherlands
Posts: 964
101.50 NP$ (Donate)

xlusive is just really nicexlusive is just really nicexlusive is just really nicexlusive is just really nicexlusive 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.
__________________
Online Dragonball Game
xlusive is offline  
Old 07-03-2005, 04:21 PM   #8 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

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
wistow is offline  
Old 07-04-2005, 01:48 AM   #9 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

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
wistow is offline  
Old 07-04-2005, 02:15 AM   #10 (permalink)
NamePros Regular
 
Join Date: Mar 2004
Posts: 638
502.35 NP$ (Donate)

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, 02:26 AM   #11 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

wistow is an unknown quantity at this point


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

Craig
wistow is offline  
Old 07-04-2005, 02:41 AM   #12 (permalink)
NamePros Regular
 
Join Date: Mar 2004
Posts: 638
502.35 NP$ (Donate)

theparrot is a jewel in the roughtheparrot is a jewel in the roughtheparrot is a jewel in the rough


Quote:
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, 02:46 AM   #13 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

wistow is an unknown quantity at this point


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

Craig
wistow is offline  
Old 07-04-2005, 08:29 AM   #14 (permalink)
NamePros Regular
 
gamex's Avatar
 
Join Date: Feb 2004
Location: Student @ UConn
Posts: 408
73.95 NP$ (Donate)

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
CarrotCash.com
gamex is offline  
Old 07-04-2005, 08:34 AM   #15 (permalink)
NamePros Regular
 
Join Date: May 2004
Posts: 315
43.00 NP$ (Donate)

wistow is an unknown quantity at this point


Thanks for the reply, but I read that article already

Craig
wistow is offline  
Old 07-04-2005, 08:46 AM   #16 (permalink)
NamePros Regular
 
Join Date: Mar 2004
Posts: 638
502.35 NP$ (Donate)

theparrot is a jewel in the roughtheparrot is a jewel in the roughtheparrot is a jewel in the rough


Quote:
Originally Posted by wistow
So when I get a dedicated server what do I need to do?

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 05:27 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85