473,652 Members | 3,045 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Creating SubDomain with PHP

I have a registration form, when after registering, the user would get
a subdomain

http://username.domainname.com
I created a wildcard DNS which happened to redirect *.domainname.co m to
the public_html folder.

I need to find a way to redirect eahc subdomain to it's user folder.
Any solutions?

Sep 18 '06 #1
3 2140
Maximus wrote:
I have a registration form, when after registering, the user would get
a subdomain

http://username.domainname.com
I created a wildcard DNS which happened to redirect *.domainname.co m to
the public_html folder.

I need to find a way to redirect eahc subdomain to it's user folder.
Any solutions?
I'd normally handle this in a .htaccess file instead of PHP.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Sep 18 '06 #2
HOW?????

Just give me a solution, not caring if it' PHP or anythin else

Jerry Stuckle wrote:
Maximus wrote:
I have a registration form, when after registering, the user would get
a subdomain

http://username.domainname.com
I created a wildcard DNS which happened to redirect *.domainname.co m to
the public_html folder.

I need to find a way to redirect eahc subdomain to it's user folder.
Any solutions?

I'd normally handle this in a .htaccess file instead of PHP.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Sep 19 '06 #3
Maximus wrote:
Jerry Stuckle wrote:
>>Maximus wrote:
>>>I have a registration form, when after registering, the user would get
a subdomain

http://username.domainname.com
I created a wildcard DNS which happened to redirect *.domainname.co m to
the public_html folder.

I need to find a way to redirect eahc subdomain to it's user folder.
Any solutions?

I'd normally handle this in a .htaccess file instead of PHP.

--
============= =====
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@att global.net
============= =====


HOW?????

Just give me a solution, not caring if it' PHP or anythin else
(Top posting fixed)

Well, you could try alt.apache.conf iguration for a .htaccess solution.

And I don't just "give solutions" - at least not for free (as a
consultant, that's how I get paid). I do, however, help those who try
things themselves.

And please don't top post.

--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attgl obal.net
=============== ===
Sep 19 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2748
by: sharma | last post by:
Hi all, I have a site called www.example.com. I would like to offer free hoting to the people and offer a site with their username like this. www.username.example.com. Please can any one here tell me how to accomplish this using php ? Thanks, sharma
1
2281
by: perspolis | last post by:
Hi If I want to create subdomain for my site dynamicaly how can I do that with ASP.NET? or is it possib;e to create subdomain with IIS?? thanks
1
2487
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and http://picturestore.newpicturestore.com/test - the first one works - the counter using session state increases every time the button is clicked. The second one uses subdomain forwarding with masking. The "picturestore"
1
1342
by: Jahedur Rahman | last post by:
I am in a problem in creating subdomain. I use mojavi platform to work in php5. Please inform me as early as possible with details. With regards. JAHED
0
1696
by: Greg | last post by:
Is it possible for authentication using asp.net membership to persist from a site to a subdomain? The scenario I want to provide is: User browses to the page somesite.com and logs in. User clicks on link that points to the subdomain demo/somesite.com. Is it possible to retain the authentication information for the subdomain, so that there is no need to log in again?
12
3049
by: Tina | last post by:
Our company domain, say, wombat.com needs to create several subdomains: support, training, and purchase are three of the subdomains needed. So when someone browses to //training.wombat.com they will be directed to the IP we have assigned. I have two questions: 1. how can I do this at design time? 2. how can I do this at run time from my asp.net code? Thanks,
5
1895
by: Andy B | last post by:
I have 1 main website at www.eternityrecords.org. The files are layed out in the root of the webserver space. I need a folder in this root space to point to a subdomain. Any way to do that?
3
33592
by: a2rodger | last post by:
I am using the following function and parse_url() to attempt to grab the subdomain from my sites url function selfURL() { $s = empty($_SERVER) ? '' : ($_SERVER == "on") ? "s" : ""; $protocol = strleft(strtolower($_SERVER), "/").$s; $port = ($_SERVER == "80") ? "" : (":".$_SERVER); return $protocol."://".$_SERVER.$port.$_SERVER; } function strleft($s1, $s2) { return substr($s1, 0, strpos($s1, $s2)); } $url = selfURL(); $uri =...
1
1688
by: Josh | last post by:
I have a question about subdomains. I would like my website to have subdomains that essentially show my regular main website, except that the subdomain passes as a variable on all pages so that I can use the subdomain as a variable to customize details. For example, the home page at www.thesite.com would have a set of information displayed, but the subdomain (subdomain.thesite.com) would display certain additional details. Am I...
0
8279
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8811
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8703
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6160
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5619
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4145
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2703
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.