Results 1 to 3 of 3

Thread: playing with redirects

  1. #1
    g0d! Contributing Member siosios's Avatar
    Join Date
    Oct 2006
    Location
    In a cardboard box
    Age
    51
    HlStats

    HLStatsX Ranking for STEAM_0:1:13488560
    Posts
    13.568
    Blog Entries
    12
    Rep Power
    10

    Default playing with redirects

    gonna play around with some things concerning redirects and domain names for the game servers.

    redirect: N00bunlimited office server

    this can be done several ways - html, php, or .htaccess

    HTML:
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
    <title>Your Page Title</title>
    <meta http-equiv="REFRESH" content="0;url=steam://connect/75.126.43.191:27018"></HEAD>
    <BODY>
    Optional page text here.
    </BODY>
    </HTML>
    php:
    PHP Code:
    <?php
    header
    'Location: steam://connect/75.126.43.191:27018' ) ;
    ?>
    .htaccess:
    Code:
    Options +FollowSymLinks
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^office.n00bunlimited.net [NC] 
    RewriteRule ^(.*)$ steam://connect/75.126.43.191:27018 [L]

    with the htaccess i can perform multiple redirects on one ip depending on the domain name
    example(dust2 domain name is not active):

    Code:
    Options +FollowSymLinks
    RewriteEngine on 
    RewriteCond %{HTTP_HOST} ^office.n00bunlimited.net [NC] 
    RewriteRule ^(.*)$ steam://connect/75.126.43.191:27018 [L]
    RewriteCond %{HTTP_HOST} ^dust2.n00bunlimited.net [NC] 
    RewriteRule ^(.*)$ steam://connect/75.126.43.191:27015 [L]
    Stupid htaccess Tricks • Perishable Press

    ok so with the above in mind fire up http on your game server, if you have a dedicated server, and then add a subdomain to your web hosting account pointing to an ip on the game server.

    edit your apache.conf to show that ip is used for a certain domain name so all traffic to that ip hits the web dir you specify in the apache conf file. add your chosen way of redirecting to the web folder and test.

    Code:
    <VirtualHost 75.126.43.191>
    DocumentRoot /var/www/html/office
    <Directory "/var/www/html/office">
    allow from all
    Options +Indexes
    </Directory>
    ServerName office.n00bunlimited.net
    </VirtualHost>
    (this is a bland tutorial written while drinking so if i missed a few steps just ask and ill fill them in.)
    Last edited by siosios; 02-21-2010 at 08:20 AM.
    ------------------------------------------------

    |W0rd|SexualTurtletara420ת/ύ: Hey there daddy..

    ------------------------------------------------
    \\\ ///
    ( @ @ )
    .....o00o.(_).o00o.....


    ------------------------------------------

  2. #2
    Єlιtus mєmєяєdus Pwnerator
    Join Date
    Aug 2009
    Location
    Dragon's Fall; Alaska
    Age
    34
    HlStats

    HLStatsX Ranking for STEAM_0:1:17364776
    Posts
    244
    Rep Power
    16

    Default

    Kigen has those setup for NS.
    I like em =D
    [CENTER][FONT=Fixedsys][CENTER][SIZE=4][COLOR=Red][FONT=System][B]I reject your reality and substitute with my own.[/B][/FONT]
    [/COLOR][/SIZE][/CENTER]
    [/FONT]
    [IMG]http://i47.tinypic.com/2i71q2x.jpg[/IMG]
    [/CENTER]

  3. #3
    g0d! Contributing Member siosios's Avatar
    Join Date
    Oct 2006
    Location
    In a cardboard box
    Age
    51
    HlStats

    HLStatsX Ranking for STEAM_0:1:13488560
    Posts
    13.568
    Blog Entries
    12
    Rep Power
    10

    Default

    this sort of thing is kinda preschool in nature but i saw alot of chatter about it over at the sourcemod website, seeing as i was bored i decided to write up a mini tutorial that is more a basic starting point then anything else.


    sio
    ------------------------------------------------

    |W0rd|SexualTurtletara420ת/ύ: Hey there daddy..

    ------------------------------------------------
    \\\ ///
    ( @ @ )
    .....o00o.(_).o00o.....


    ------------------------------------------

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Similar Threads

  1. Just playing around with Imageready and animations a bit
    By siosios in forum Sigs and Sprays
    Replies: 3
    Last Post: 12-24-2009, 03:26 PM
  2. Enjoy playing Zombie//Mod games?
    By Zaku-x109 in forum Rants (game/life)
    Replies: 0
    Last Post: 12-05-2009, 12:17 PM
  3. Playing instruments
    By Shotgun in forum N00B Unlimited General Chat
    Replies: 10
    Last Post: 10-30-2009, 12:58 PM
  4. Latency problems when playing
    By Kidder in forum PC Hardware Problems
    Replies: 5
    Last Post: 04-20-2009, 06:10 AM

Tags for this Thread

Bookmarks

Posting Permissions

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