I want to set up redirection based on the network address portion of an ip address.
This is a solution for an intranet to free up slow 56k WAN links.
Everyone has the same subnet mask. I have installed local mirrors of the production web server, and am working concurrently on automating the mirroring of sites using perl/rysnc/ftp out of hours, when bandwith is available over 56K lines.
Redirection was easy and but am having struggling to find info on the web about how to do ip calculations using php, that I can then use the results of to direct the client to the correct server/network.
e.g.
web server = 192.168.9.1
all 192.168.7. -> redirect 192.168.7.1/nextpage.html // bye
all 192.168.8. -> redirect 192.168.8.1/nextpage.html // bye
all 192.168.9. -> goto 192.168.9.1/nextpage.html
Pointers to working examples would be appreciated.