Home business articlesMarketing  ecommerce  home based  online internet business  free course
  16 hours of free training in just 5 minutes a day. Teaching you how to grow your online
internet business,
by learning about marketing your home business or ecommerce website with
easy to understand articles.
 
Sign Up Here To Get Free
Business / Marketing Tips
Name:
Email:
  Home              Index Mission Statement Links                  Articles

Sign Up Now

Google
Web .foxonlinelearning.com

 

 

 

Use Descriptive URLs to Bolster Your Search Engine Rankings!

Dynamically generated pages, such as those made by PHP scripts, usually have URLs that aren't very readable, like "mysite.com/script.php?id=3951&page=2?. The URL doesn't say anything at all as to what the page is, other than showing that it's generated by a script. If you want to make your dynamic pages more search engine friendly, rewrite your scripts to use descriptive URLs!

A URL like "mysite.com/blogpost/3951-People-Know-What-This-Is.html" would be a lot better, wouldn't it? Right off the bat, you know what the page is about. If you're scrolling through your recent pages, you can find exactly what you're looking for a lot easier. More importantly though, search engines love URLs like these, so you get a nice rankings boost!

As a PHP programmer, I'm going to detail this technique with PHP, but the same principle applies to whatever serverside scripting language you use.

To start, have the script execute as a file without the extension, instead of with the .php extension (or or .jsp, or whatever extension your language uses). On Apache servers, you can use a ForceType statement in the .htaccess file to make the script execute as application/x-httpd-php. This tells Apache to run the file as a script instead of just spitting out your code.

Right now, your script should work properly as "mysite.com/script?id=3951&page=2?. It's no longer readily apparent which language your site uses, but you can still tell that it's a dynamic page. Let's fix that next, by using PHP's explode function to break up the argument list. Using this, the arguments to your script will look like folders on your server instead of parameters to a script:

$args = explode("/",$_SERVER['PHP_SELF']);

Now, if you were to access "mysite.com/script/3951/2?, $args would become an array with "3951? and "2?. You can replace the slash with a hyphen to separate arguments without making them look like directory entries, or use a second explode statement to break down some of the arguments in a different way.

Finally, write some code that converts the title of the content (be it the blog post name, forum topic, etc.) into an argument, substituting dashes for spaces. Some people use underscores instead of dashes, but the search engines don't see underscored words as separate terms, so you end up with the search engine thinking "This_Is_My_Post" is one big word.

Add a pinch of code at the top of the script to make ensure that the URL matches the one you want it to be (so it redirects thread/4614-wrong-name-1 to thread/4614-This-is-my-posts-name-1), then add .html to the end of it (so it looks like an innocent html file) and you're good to go!

To prevent stuffing the url with words that don't really matter, use the string replace functions to remove words such as "I", "The", and "And" from the URL.

Most search engines won't completely index your website if it's all stuffed into argument lists, so by having URLs that look like normal filenames you both ensure that all of your pages are indexed and increase your search engine optimization. Making your URLs readable by humans is juts an added bonus. Make sure to update the links within your site to reflect your new URLs, so your page doesn't turn into a smattering of redirects.

About the Author: Phil runs a web development resource site. Find yourself asking, Where do I buy web hosting? Read all about it on Phil's site!


This article courtesy of SiteProNews.com

Have a nice day!

Google
 
Web www.foxonlinelearning.com
 

 

Home Business Ideas
Blogging / Podcast

Affiliate Marketing

Customer Service
Email Marketing

Entrepreneurialism
Ezines

Google
Insurance
Health
Linking Strategies
Negotiation

Online degree

RSS

Security

SE Optmization

SE Tactics

SE Submission

Small Business

Technology

Team Building

Social Networking
Venture Capital

Video Marketing

Web Design

Web Development

Webmasters

Website Promotion

Website Traffic

Site Map


Business Marketing
Tips Index:

 
 

 Ecommerce

 

 Business

   Selling
   Advertising
   Management
   Planning
   Marketing
         
1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
26 27 28 29 30
31 32 33 34 35
36 37 38 39 40
41 42 43 44 45
46 47 48 49 50
51 52 53 54 55
56 57 58 59 60
61 62 63 64 65
66 67 68 69 70
71 72 73 74 75
76 77 78 79 80
81 82 83 84 85
86 87 88 89 90
91 92 93 94 95
96 97 98 99 100
101 102 103 104 105
106 107 108 109 110
111 112 113 114 115
116 117 118 119 120
121 122 123 124 125
126 127 128 129 130
131 132 133 134 135
136 137 138 139 140
141 142 143 144 145
146 147 148 149 150
151 152 153 154 155
156 157 158 159 160
161 162 163 164 165
166 167 168 169 170
171 172 173 174 175
176 177 178 179 180
181 182 183 184 185
186 187 188 189 190
191 192 193 194 195
196 197 198 199 200
         
         

 

 

Home & Index
Mission Statement
Links

Sign Up Now!
to get Free
Busines & Marketing Tips

Unlimited 

Autoresponders by AWeber



Subscribe and receive 5 popular summaries FREE!     25% to 75% Off All Products at Vistaprint!;
    Free Articles - Home Business. Ecommerce, Marketing covers USA, New York, Seattle, Philadelphia, Washington DC , Chicago, Baltimore , Atlanta, Dallas , San Francisco, Canada, England, Ireland , and India    
Previous Article   2010Foxonlinelearning.com   Next Article