Rewrite an IP address

Ask your mod_rewrite and Redirection questions here, and get answers!

Rewrite an IP address

Postby DaveTomneyUK » 15 May 2008 23:41

Hi,

I have a VPS website and use 1 IP address and if I goto the IP address it shows my website.
How can I make it so if someone types in my IP address it rewrites it and makes them goto my website.

EG - If they type in 128.17.18.1 it redirects them to mysite.com

PS - I wont to use the rewrite and not the redirect function if possible.

Any ideas?

Thankyou
DaveTomneyUK
 
Posts: 4
Joined: 13 Sep 2007 11:05

Re: Rewrite an IP address

Postby DaveTomneyUK » 17 May 2008 14:53

I cannot edit my post, So I say here.

UPDATE - Got it working now.
DaveTomneyUK
 
Posts: 4
Joined: 13 Sep 2007 11:05


Return to Redirect or Rewrite Questions



Who is online

Users browsing this forum: clerkfurniture, HIBcokyacrornsap, LOTVodaPeece, ShakhtarrDon, VocrepeAcceby, Zitioutbava