View RSS Feed


playing with redirects

Rate this Entry
Quote Originally Posted by siosios View Post
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

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

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

Options +FollowSymLinks
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^ [NC] 
RewriteRule ^(.*)$ steam://connect/ [L]
RewriteCond %{HTTP_HOST} ^ [NC] 
RewriteRule ^(.*)$ steam://connect/ [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.

DocumentRoot /var/www/html/office
<Directory "/var/www/html/office">
allow from all
Options +Indexes
(this is a bland tutorial written while drinking so if i missed a few steps just ask and ill fill them in.)

Submit "playing with redirects" to Digg Submit "playing with redirects" to Google Submit "playing with redirects" to facebook Submit "playing with redirects" to reddit Submit "playing with redirects" to yahoo

Updated 07-22-2011 at 08:27 PM by siosios

Tags: None Add / Edit Tags
Tech Space



Total Trackbacks 0
Trackback URL: