Results 1 to 5 of 5

Thread: How..

  1. #1
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default How..

    How do you do this (ive searched google btw)

    Make it so

    www.namehere.froobe.co.uk

    goes to

    www.froobe.co.uk/sub.php?text=namehere

    But I want name here to be customizable so I dont have to keep adding them, like on www.you.justgotowned.com

  2. #2
    Join Date
    Nov 2006
    Location
    Leeds, Yorkshire
    Posts
    992
    Tokens
    0

    Default

    Something to do with htaccess I think.


  3. #3
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Put this in .htaccess:

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
    RewriteCond %{HTTP_HOST} ([^.]+)\.yoursite\.com [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/sub.php?page=%1 [L,R]
    That should work

    Got it from
    http://www.msfn.org/board/lofiversio...hp/t19527.html

    Thanks,


    Jake

  4. #4
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Put this in .htaccess:

    Code:
    RewriteEngine On
    
    RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
    RewriteCond %{HTTP_HOST} ([^.]+)\.yoursite\.com [NC]
    RewriteRule ^(.*)$ http://www.yoursite.com/sub.php?page=%1 [L,R]
    That should work

    Got it from
    http://www.msfn.org/board/lofiversio...hp/t19527.html

    Thanks,


    Jake
    Doesnt work.. Shall I open a CNAME?

  5. #5
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •