sub.domain to domain/sub

Author Topic: sub.domain to domain/sub  (Read 3923 times)

Xatsker

  • Guest
  • Trade Count: (0)
sub.domain to domain/sub
« on: 04-21-2010, 18:03:11 »
Is there anyway to change the layout of the sub domain prefix I have a domain social.irlmusic.net is there anyway to make it irlmusic.net/social without having to install the script with in the top level domain?


Offline Nicpoint45

  • Trade Count: (0)
  • Jr. Member
  • **
  • Thank You 3
  • Posts: 55
  • Karma: 3
Re: sub.domain to domain/sub
« Reply #1 on: 04-21-2010, 18:03:49 »
I run Apache on linux with cPanel, and had set up subdomains in cPanel. E.g. milk.example.com.

What I found when I went into my server directory structure was a directory named milk, which contained an .htaccess file in its root, a cgi-bin folder and a copy of my error pages in there.

Your best bet is probably to place a redirect in the root of milk.example.com pointing to example.com/milky/ or example.com/milk2/. Were you to redirect milk.example.com to example.com/milk/, and you could access that folder, it would redirect you in an endless loop.

 

Related Topics

  Subject / Started by Replies Last post
7 Replies
4594 Views
Last post 05-08-2010, 22:57:46
by WendyK
1 Replies
3851 Views
Last post 04-21-2010, 13:39:27
by Xatsker
0 Replies
2262 Views
Last post 10-31-2013, 01:44:54
by hzaheer786
1 Replies
1833 Views
Last post 11-04-2015, 01:02:21
by RH-Calvin
0 Replies
1317 Views
Last post 06-24-2016, 23:11:23
by fpforum