In Progress

Virtual Subdomains Setup - mod_rewrite, .htaccess, php and/or MySQL

Project Description:

I run a classified ads type website and I need to setup geographic location virtual subdomains on my server which re-direct invisibly to a php handling script which will serve up the appropriate content for each geographic location.

An example of how I want the site to work would be :

[url removed, login to view] - delivering ads and content for new york area

[url removed, login to view] - delivering ads and content for new york area



1) Relevant .htaccess rules to setup and handle virtual subdomains

2) Sample PHP script to handle the incoming re-directs and serve them appropriately

3) Deliverables can be also be achieved by Database routing as opposed to .htaccess methods

Key Requirements


1) The re-directs should be totally invisible and seamless to the user

2) Once in the chosen subdomain (e.g. [url removed, login to view]) ... all content is displayed relevant to that location and all scripts

operate as if this location was the main site. This means no scripts should fail due to directory location errors etc

3) FAST - The virtual subdomains should be very fast with no appreciable overhead due to the re-directs.

4) The virtual subdomain re-directs must function with existing .htaccess re-directs in place currently

Skills Required


1) ideally someone who has setup a similar functioning virtual subdomain architecture for a classified ads type website

2) Intimate knowledge and experience of .htaccess and mod-rewrite functions

3) Intimate knowledge and experience of php scripts which handle incoming and outgoing virtual subdomain redirects.

I am fairly familiar with all of these areas but am looking to shortcut and save myself days of work by getting someone

who has done this before and can provide what i need in minutes or a few hours tops !

Standard responses will be ignored. Please respond to the deliverables and requirements specifically. Thank you.

Skills: MySQL, PHP, Shell Script, Software Architecture, System Admin

See more: setup subdomain htaccess, virtual subdomain htaccess, virtual function, virtual location, scripts direct, php main functions, location routing, rewrite content fast, direct scripts, htaccess subdomain mysql, virtual subdomain php, database scripts php mysql, overhead, newyork, minutes tops, php redirects, website virtual server, php script admin area, php script setup, php virtual server, php rules rewrite, rewrite function php, server 2012 standard, server 2012 standard setup, direct setup

About the Employer:
( 7 reviews ) Dublin, Ireland

Project ID: #2560083