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")
?>
Next entry: Never Assume People Know Something
Previous entry: How to Use Clickbank's New Ranking for Competitive Intelligence
Members:
Login | RegisterJoin our Mailing List
Categories
- Ad Tracking
- Affiliate Programs
- Announcements
- Competitive Intelligence
- Guest Articles
- Design
- htaccess Magic
- Includes
- Membership Areas
- Musings
- Personalization
- Product Theft
- Programming Tricks
- Recommendations
- Rotation Magic
- Site Management
- Site Security
- Smack on the Head
- Software
Monthly Archives
Most recent entries
- Use Google Site Maps? Better Read This
- Want to Get More Pages In Google - Faster?
- Never Assume People Know Something
- Use Domain Wildcarding to Shorten Urls
- How to Use Clickbank's New Ranking for Competitive Intelligence
- How to Create A Free Simple Site Map
- Essential Anti-Virus and Spyware Programs
- Personalized PDF - On The Fly
- PHP and HTML includes - Combined with Dreamweaver templates
- How to Create On the Fly PDF Documents
- Alexa Rankings - What a Joke
- If You Use Passwords - Read This Article
- Suffering From Too Many Instant Message Icons?
- The Name of One Book That Must Be On Your BookShelf
- If You Haven't Read This Book, I Guarantee You're Losing Money