Dynadot โ€” .com Registration $8.99

Domain question

Spacemail by SpaceshipSpacemail by Spaceship
Watch

.:Mammoth261:.

Established Member
Impact
11
Instantly by the title you are going to assume that this is in the wrong place. It was a toss up for me between programming and development. Yes its a domain question, but the developer side of it.

Basically, I have this script which I would like to enable users to use their own domains which would be linked to a subdomain on my site and I would like it automatically so it runs off one script. I understand that I have to identify which site etc. but my question is getting the domain to work in the first place?

For instance, have you ever used invisionfree? They use a CNAME record which will then point to the subdomain, but then how do i make my script identify which domain the site is used for? I presume it would need to use .htaccess and something to identify the site. I've tried to search and resulted in nothing.


Appologies if I have not explained myself clearly, if still unclear about what i need then i will gladly try and rephrase. Any input here is gladly appreciated.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
you want a domain like abc.com to be redirected to your abc.yourdomain.com ?
 
0
•••
I have this script which hosts multiple sites. And I just want to run one version of the script rather than uploading it for each site. I have used index.php?site=XXX which identifies the current site. this is also defined as a subdomain on my hosting XXX.myhosting.tld. So each subdomain points to index.php?site=XXX so the site is identified. What I'm saying is how would i be able to use domains to do similar to what subdomains are currently doing for me?
 
0
•••
I'm assuming they are on the same host, so you can access files.

This is more of a stab in the dark as I don't 100% understand your problem.

PHP:
<?php
$domain = $_SERVER['HTTP_HOST'];
/* Use some Sql query here to find out the individual code for this domain */
$_GET['site'] = $mysql_returned_xxx_combo;
include("/home/jamie/main/index.php");
?>

P.S. Do I know you?

Dan. :tu:
 
Last edited:
0
•••
Ahh I see. Looking at it from a different perspective to how I was. Hmm, think I shall have a play and see what I can rustle up from that. Thanks =]
 
0
•••
Appraise.net
Unstoppable Domains
Domain Recover
NameMaxi - Your Domain Has Buyers
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back