Redirects to home server?

Caporegime
Joined
25 Oct 2002
Posts
30,409
What's the most basic (and safest) way to redirect a page to a server on my home network?

Specifically, I have TivoWeb set up at home (so I can change channels on the TV from anywhere in the world - how lazy is that? It's wap enabled too :)), but can't always remember my IP address - I just want to type in http://tivo.mysite.com and forward there automatically.
 
Ooops - I was being a bit ambiguous, in that I have a static home IP (so no need for www.no-ip.com), but can't always remember it.

What I do have is a hosted domain, on which I want to place a page that automatically redirects to the tivo hosted page.

Using the hosts method is not an option, as I am on clients' machines.
 
robmiller said:
DynDNS offers support for static IPs - it basically just redirects a subdomain to your static IP.
The client site that I'm on has it blocked (so it's safe to assume other clients will too).

I though it would be a simple case of a bit of code in index.htm (or index.php etc.)?
 
Beansprout said:
If you have control of your domain's DNS then add an A record for something like tivo.[domain] and give it your home IP :)
I doubt I do (1and1 are the hosts) - And I wouldn't know what an A record is either :)
 
robmiller said:
Wait, you already have the domain hosted? Presuming it's running Apache, stick this in a file called .htaccess in your document root:

Code:
RewriteEngine On
RewriteRule ^.*$ http://127.0.0.1/$1 [QSA]

Where 127.0.0.1 is your external IP, naturlich.
Grazie mille.

Obviously, I've now found that I can change the DNS settings for subdomains.

I'll stick with .htaccess though - At least it gives me an extra layer of protection too :)
 
Back
Top Bottom