Hi,
I have been working on a redirection website where users can shorten their url by making thier page a subdomain on my site. Ex. theirname.mysite.com.
This is where I got stuck - how can the user instantly create a subdomain. That's my main problem. If anyone knows about this, please let me know.
Here is what I have done so far:
http://www.surplusmagazineshop.com/redirection2
Username: demo
Password: demo
Again, any help on this would be appreciated
Aaron
Instant Subdomain Creation
Moderator: General Moderators
i'm no expert in this but from what is see here you
can do without making a seperate domain.
just use the get command for this and put the target name in a table
create a table like this
target_site----ownname----passwd
and if people come in with a site name let the database check the name and
redirect them to the given site
hope it makes sense
can do without making a seperate domain.
just use the get command for this and put the target name in a table
create a table like this
target_site----ownname----passwd
and if people come in with a site name let the database check the name and
redirect them to the given site
hope it makes sense
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- neel_basu
- Forum Contributor
- Posts: 454
- Joined: Wed Dec 06, 2006 9:33 am
- Location: Picnic Garden, Kolkata, India
Did You Mean The httpd.conf File or extra/httpd-vhosts.confEverah wrote:If you actually want to make a subdomain (that will actually resolve) you will need to be able to edit your servers configuration file and tell it what to do with the new subdomain. Usually folks would just leave it as a sub-directory and mock a subdomain using mod_rewrite though.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA