Forum Moderators: open
Many of our customers come from UK univeristies and I think it would be great to direct a user to a specific page based on their university. These university pages would be unique rather than cookie-cutter pages.
I don't think it would be too hard to get hold of the IP address ranges for the universities (e.g. Cambridge is 131.111.*.*)
I have trialled the system out by adding the IP range into a MySQL database and using a PHP script which checks the database and the user's IP address and does something like:
// If the visitors are from Cambridge, redirect them to Cambridge Page
if ($uniSHORT == "CAM")
{
Header("Location: [CAMBRIDGEPAGE");...]
} else {
// Otherwise, redirect them to home page
Header("Location: [HOMEPAGE");...]
}
I have noticed this method craetes a 302 redirect. Will Google be okay with this? Will it think I am cloaking?
TIA
Alex