Promote Hot Selling Products - 60% Commission

Use Domain Wildcarding to Shorten Urls

Which domains would you rather see:

http://exercise.example.com or http://www.example.com/exercise.html

http://computers.example.com or http://www.example.com/computers.html

http://health_news.example.com or http://www.example.com/health_news.html

By using domain wildcarding you can shorten your url and make a sub-page look like a main page.

Which domains would you rather see:

http://exercise.example.com or http://www.example.com/exercise.html

http://computers.example.com or http://www.example.com/computers.html

http://health_news.example.com or http://www.example.com/health_news.html

By using domain wildcarding you can shorten your url and make a sub-page look like a main page.

Step 1:

First, enable wildcarding for your domain in your DNS control panel. To see if your host has already enabled this for you do this: replace www in your url with random letters. If you still see your site, wildcarding is enabled.

If it isn’t you will need to modify your Zone Record.

Example:

* IN A 66.227.119.10

Step 2:

Determine if you want to use SSI’s (server side includes) or PHP includes. What you use will be determined by what you want to do with the page.

PHP Examples:

1: If you simply want to load an existing html page use this:


<?php

$url = $_SERVER["HTTP_HOST"];
$page_to_load = explode( ".", $url);
include( $page_to_load[0] . ".html")

?>

Posted by Admin on 03/29 at 09:28 PM

Name:

Email:

Location:

URL:

Smileys

Remember my personal information

Notify me of follow-up comments?

<< Back to main