Jump to content

Recommended Posts

Hi guys,

 

Im not sure how to create this...

 

Basically i want to create "fake" subdomains...

 

http://www.mysite.com

http://one.mysite.com

http://two.mysite.com

 

And i want the subdomains to point to the domain name http://www.mysite.com

 

How would i go about doing this? Thanks

Link to comment
https://forums.phpfreaks.com/topic/77717-subdomain/
Share on other sites

  • 1 month later...
  • 3 weeks later...

For Apache 2.0.x - at least - the context for ServerAlias is VirtualHost and the Context for VirtualHost is the server config file so you might be a bit stuck with .htaccess on this one.

 

http://httpd.apache.org/docs/2.0/mod/core.html#virtualhost

http://httpd.apache.org/docs/2.0/mod/core.html#serveralias

 

If you had access to the main server config file then you'd be able to do this PDQ, however as you're sticking with .htaccess I'd hazard a guess you're on a hosted account where, for very good reasons, your server admin would want to have full control the hows and whys of his/her client's use of virtual hosts.

 

I think you will need to speak to your host webmaster unless you have a lot of time to amuse yourself trying to find more long-winded ways round this.

Link to comment
https://forums.phpfreaks.com/topic/77717-subdomain/#findComment-434057
Share on other sites

Wildcard subdomains would, potentially cover everything in the known universe which could be described in the RFC domain name format.

Can't see what the problem is.

As originally stated the request appears to be nothing more than a request for wildcard redirection to one single domain.

My guess there's a deeper level of unspoken requirements here. ???

Link to comment
https://forums.phpfreaks.com/topic/77717-subdomain/#findComment-441943
Share on other sites

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.