• October 19, 2021, 07:38:56 pm

Author Topic: vhosts and htaccess  (Read 1521 times)

urlshrink

  • Newbie
  • *
  • Posts: 4
vhosts and htaccess
« on: July 20, 2010, 09:20:15 pm »
I was wondering if there was anyone experienced with APACHE vhosts and htaccess files.

I'm trying to create dynamic sub-domains and then rewrite them with an htaccess file.

Any help would be appreciated.

Thanks

Scope

  • Founder
  • Main Administrator
  • Hero Member
  • *******
  • Posts: 3,143
    • BnetWeb
Re: vhosts and htaccess
« Reply #1 on: July 21, 2010, 05:53:49 pm »
Dynamic subdomains meaning...?

http://www.whatever.com/index.php?s=subdomain and then making that into http://www.whatever.com/subdomain/ ?

"Capitalization is the difference between helping your Uncle Jack off a horse and helping your uncle jack off a horse."

pikachu

  • Administrator
  • Hero Member
  • *******
  • Posts: 3,344
Re: vhosts and htaccess
« Reply #2 on: July 24, 2010, 04:23:12 am »
@scope: He's talking about having something like http://subdomain.website.com turn into something like http://website.com?sd=subdomain or http://website.com/subdomain.  Guessing by his name he's probably creating a tinyurl clone.

@urlshrink: Take a look at the documentation here.  You're gonna wanna look into dynamically configured mass virtual hosting and mod_rewrite.

 

newBalance by DzinerStudio