Tag Archives: redirects

Quick Tutorial: Mass “Keyword Subdomains” REDIRECT to “MPC Pages”

  1. Go to domain registrar and add DNS records:
    type: A
    host: *.yourservices.com
    answer: your server ip (ie. 1.2.3.4)
  2. Go to cPanel and add “subdomain”, use:
    *.yourservices.com POINT TO FOLDER /public_html/
  3. Go to file manager and add in “/public_html/” a .htaccess file: RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(.*)\.yourservices\.com
    RewriteRule ^(.*)$ http://yourservices.com/%1/index.html [R]
  4. Test it by going to:
    http://keyword-one.yourservices.com
    http://keyword-two.yourservices.com
  5. It should redirect you to:
    http://yourservices.com/keyword-one/index.html
    http://yourservices.com/keyword-two/index.html

If you have any specific questions, use these 2 resources: