Mod rewrite - Subdirectories to subdomain

Discussion in 'Apache' started by shabda, Dec 23, 2008.

  1. #1
    I have an existing subdirectory at www.example.com/blog. I want to make this available at blog.example.com. Is there a way to do this with mod_rewrite?

    I dont have access to cpanel, but I can exit my .htaccess or httpd.conf file.
     
    shabda, Dec 23, 2008 IP
  2. HSH

    HSH Peon

    Messages:
    73
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Is blog.example.com DNS'ed? If it is, you can do it with the VirtualHost directive in httpd.conf.
     
    HSH, Dec 23, 2008 IP