creating a subDomain redirection - PHP

They have: 3 posts

Joined: Jun 2004

hallo Can Some One explain me how can i create a subDomain that redirectionto a diffrent website!

i trying to build one of those sort urls system
so people can register and they can use Name.myDomain.com to redirect they website.

just a php example to this subsomain creation ot somethong

tnx

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

If you have a cpanel then go to subdomains and make one, then go to redirects and add one, not very hard if you have cpanel Wink

They have: 3 posts

Joined: Jun 2004

but i build a sysem that do this!!!
and i only dont know how to create a subdomain from php!
maybe .htaccess stuff?

teammatt3's picture

He has: 2,102 posts

Joined: Sep 2003

oh, I must have missed that:) Try hotscripts.com, they have serveral other programming languages besides php

He has: 19 posts

Joined: Jun 2004

Creating domains cannot be done exclusivly in PHP you must use some sort of servre app/protacol

He has: 1,758 posts

Joined: Jul 2002

Theres a thread in this area that I replied to a few weeks back that will answer your question... I think.

They have: 3 posts

Joined: Jun 2004

i searched all over the forum - i didnt found a thing useful!

anyway can u show how to create in php using cpanel?
or using .htaccess ?

He has: 1,758 posts

Joined: Jul 2002

There is code in this thread that with a bit of adaption will solve your problem.

(it even shows up below in the "similar threads" section.)

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.