(858) 586 7777 | About | Testimonials | Contact
vteams vteams vteams vteams
  • How does it work?
    • Startup Process
    • Your First Day
  • Technologies
    • Hire PHP Developer
    • Hire App Developer
    • Hire JavaScript Developer
    • Hire ROR Developer
    • Hire IOS Developer
    • Hire .NET Developer
    • Hire AI Developer
    • Hire Robotics Engineer
  • Sample Budgets
  • Meet The Team
  • Experiments
  • Captain’s Log
  • Blog
vteams vteams
  • How does it work?
    • Startup Process
    • Your First Day
  • Technologies
    • Hire PHP Developer
    • Hire App Developer
    • Hire JavaScript Developer
    • Hire ROR Developer
    • Hire IOS Developer
    • Hire .NET Developer
    • Hire AI Developer
    • Hire Robotics Engineer
  • Sample Budgets
  • Meet The Team
  • Experiments
  • Captain’s Log
  • Blog
Blog
  1. vteams
  2. Blog
  3. “How to Park Domains”. A detailed walkthrough
Mar 25

“How to Park Domains”. A detailed walkthrough

  • March 25, 2014

How-to-Park-Domains-A-detailed-walkthroughClient sent a requirement to the developer Aqeel Shamas to create a feature in the multi-site CMS Platform which will allow his customers to park their domains on that platform to use CMS services instead of the manual sub-domain creation process. The task was very challenging and required lots of R&D to translate the requirements into actual a product feature. The developer took the challenge and left no stone unturned to find a solution to achieve the goal.

Parked Domains and CMS

Parked domains are often used by businesses who want to have more than one web address for advertising purposes. Parked domains are additional domains hosted on your account which display the same website as your primary domain and share web statistics as well; however, you can also give the parked domain its own email boxes.
For example, if you own domain1.com and it is the primary domain of your cPanel account, you can set up domain2.com as a parked domain and it will load the content of domain1.com. When you visit domain2.com, you will notice that although the content of domain1.com is loading in the browser, the address bar will display http://domain2.com/. This is similar to a masked forward.

How to Park a Domain with PHP and cPanel: Prerequisites

  • Your application must have ability to understand and distinguish between sub-domains.
  • Database architecture to save association between internal CMS system sub-domain and parked domain.
  • Server with cPanel license.
  • Should be familiar with cPanel scripting and XML APIs.
  • Knowledge of parked domains and using name servers to point domains.
  • Custom configuration files and custom settings for each parked or sub-domain.

Solution: Process and Execution

  • Saved association between sub-domain and parked domain in database.
  • Provided an interface to user for parking domain in admin panel of CMS.
  • Pointed the parked domain to CMS server by using name servers: e.g.
    • ns1.yourdomain.com
    • ns2.yourdomain.com
  • cPanel scripts execution to park domain on CMS server through shell or cPanel API .
  • Implemented a code routine to parse/understand the requested URL.
  • If identified as parked domain URL:
    • Fetched associated underlying subdomain from database and loaded its custom configuration file containing the custom settings for the parked domain.
    • Served the request and displayed the user CMS site.
  • If identified as normal CMS system URL containing the customer subdomain:
    • Loaded CMS subdomain configurations.
    • Served the request and displayed the user CMS site.
  • After load system’s configuration file, created an instance of YII application and performed required execution to serve the request.
  • Facebook
  • Twitter
  • Tumblr
  • Pinterest
  • Google+
  • LinkedIn
  • E-Mail

Comments are closed.

SEARCH BLOG

Categories

  • Blog (492)
  • Captain's Log (1)
  • Closure Reports (45)
  • Experiments (7)
  • How-To (57)
  • Implementation Notes (148)
  • Learn More (158)
  • LMS (8)
  • Look Inside (10)
  • Operations Log (12)
  • Programmer Notes (20)
  • R&D (14)
  • Rescue Log (4)
  • Testimonials (25)
  • Uncategorized (4)

RECENT STORIES

  • Ultimate Django: Become a Skilled Developer in 5 minutes
  • Create your 1st workflow with GitHub Actions within 5 Minutes
  • GitHub Actions- Automate your software workflows with excellence
  • Yii Framework – Accomplish Repetitive & Iterative Projects with Ease
  • A Recipe for CRM Software Development

ARCHIVES

In Short

With the vteams model, you bypass the middleman and hire your own offshore engineers - they work exclusively for you. You pay a reasonable monthly wage and get the job done without hassles, re-negotiations, feature counts or budget overruns.

Goals for 2020

  • Open development center in Australia
  • Complete and Launch the Robot
  • Structural changes to better address Clients' needs

Contact Us

Address: NEXTWERK INC.
6790 Embarcadero Ln, Ste 100,
Carlsbad, CA 92011, USA

Tel: (858) 586 7777
Email: fahad@nextwerk.com
Web: www.vteams.com

© 2020 vteams. All Rights Reserved.

Content Protection by DMCA.com