Jump to content

Recommended Posts

hello guys,

 

i need help about this issue:

 

i have a site (www.mydomain.com) and i want to create a subdomain for each of user who register(www.user.mydomain.com) and user.mydomain.com) and each user enter a URL (www.example.com) and a TITLE that when he visit his subdomain (www.user.mydomain.com  and  user.mydomain.com), it should redirect him to the URL (www.example.com) with the TITLE that he entered before, I think it is not redirecting because we are using a new URL with new TITLE, maybe it is fetching or something.so there is 2 problem:

1- how to create subdomains automatically.

2- how to redirect with the user specification.

 

thank u in advance,

 

Link to comment
https://forums.phpfreaks.com/topic/101447-creating-subdomain-and-redirecting/
Share on other sites

http://httpd.apache.org/docs/2.2/mod/mod_vhost_alias.html

 

I have not configured this myself. Basically if the following folder structure is created, a vhost will work straight away:

 

/srv/vhost/sitename1

/srv/vhost/sitename2

 

Once the above folder structure is made, the following vhosts would work immediately:

www.sitename1.host.com

www.sitename2.host.com

 

You'll have to do the rest yourself :)

 

-steve

http://apptools.com/phptools/virtualhost.php

 

i use this steps to creat some domain or subdomains in my computer i use windows xp sp2 and apache 2.2.

 

but the new addition subdomain and domain not available. i restart the apache and windows but problem has not been solve.

 

what's my problem?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.