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.
Phil runs a web development resource site. Find yourself asking, Where do I buy web hosting? Read all about it on Phil's site!
Comment on "Use Descriptive URLs to Bolster Your Search Engine Rankings!"
Spyware - now a problem for Mac users as well
Fortunately for the Mac users, the Adware and Spyware industry is still, as of 2005, heavily focused on the PC users. Adware and Spyware developers are particularly fond of targeting PC users through DILLs and ActiveX controls, and can therefore only attack computers running Windows. This does not mean that Mac users are completely blessed from Spyware and Adware. There are several Spyware and Adware software capable of infesting Mac, and every Mac user should take a look at the Adware and Spyware removal programs available for mac. In 2005, Symantec caused a lot of hullabaloo in the Macintosh community when they warned the mac users about how the OS X operating system was rapidly becoming a target for virus developers and hackers. Symantec ...
Basic Internet Security: Anti-Virus Software
Every time you access the Internet, you need to remember that you are not alone and that you are sharing access with millions of others High speed Internet connections are becoming commonplace and virtually everyone has some type of access to the Internet - whether it is at home, work, or school
The 4 Effective Anti-Viruses For Mobile Phones
There are effective anti-viruses software that can protect your mobile phones from being attacked by malicious programs These include Zebra Virus Cleaner, Kaspersky Anti-Virus, Commander Mobile Anti-Virus and F-Secure Mobile Anti-virus
A Rundown Of The Best Anti Virus Software
Quite often,what normally seems to us good,well liked or admired doesn't always mean the best unless of course your organization or company bases its character on being the best at safeguarding computers from viruses.Every person can have his or her own choice based on what is important to him or her.
Spyware Removal Tips - Some Quick Spyware Removal Tips To Get Your PC Running Like New
Perhaps the biggest danger while surfing the web is the threat of spyware infection. While it can slow your computer down, annoy you with pop ups, and hijack your browser, spyware can also STEAL confidential information like credit card numbers and passwords. You need to be very careful how you use the internet. Here are a few tips to prevent your computer from being infected.
Choosing the most suitable Anti virus software
Your computer is likely to get infected with computer viruses, Trojan horses, spyware, and adware especially if you use the Internet. A compute virus attack will lead to damaging or destroying of your data and records which at times cannot be retrieved. This makes it essential for you install anti-virus software and enhance the computer security of your computer.