.htaccess + Domain Parking

SpaceshipSpaceship
Namecheap AuctionsNamecheap Auctions
Namecheap AuctionsNamecheap Auctions
Watch

wistow

Established Member
Impact
0
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
 
0
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
I think i know it !!! i will get back to you when i get that file from my computer
 
0
Close
Excellent! Eagerly awaiting your reply!!!

Craig
 
0
Close
wistow .. sorry i can't find the file maybe i deleted it :( ..

Sorry maybe someone will help you
 
0
Close
grr... I did know this - its like mod_rewrite or something! :( sorry
 
0
Close
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
 
0
Close
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.
 
0
Close
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
 
0
Close
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
 
0
Close
Do you have access to the main config file or are you trying to make this work with a shared hosting account?
 
0
Close
It's currently on a shared hosting account, is this a problem?

Craig
 
0
Close
wistow said:
It's currently on a shared hosting account, is this a problem?

Craig

yes
 
0
Close
So when I get a dedicated server what do I need to do? :)

Craig
 
0
Close
0
Close
Thanks for the reply, but I read that article already :)

Craig
 
0
Close
wistow said:
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.
 
0
Close
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Filters for activity feeds
Your news feed, Latest activity, and the activity tab on profiles now have filter buttons: All, Posts, Quick replies, and Other. Your...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back