Unstoppable Domains

.htaccess + Domain Parking

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

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

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

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

Craig

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

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

Craig
 
0
•••
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
•••
Unstoppable Domains
Domain Recover
DomainEasy โ€” Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back