WP-Affiliate Tutorial Video 2 (Now Visible :P)
seodude :: Apr.13.2008 :: Links, Programming, Tutorials, WP-Affiliate, Wordpress, plugins :: No Comments »
My trip through the world of Search Engine Optimization.
seodude :: Apr.13.2008 :: Links, Programming, Tutorials, WP-Affiliate, Wordpress, plugins :: No Comments »
Although I can’t post any real hard proof of this I have sites that use both a trailing slash and those that don’t and those that don’t definitely get more traffic.
For some odd reason, which may be fixed or changed at any time, Google loves urls that have zero trailing slash.
So use mod_rewrite in all its glory and configure all your plugins to avoid this and enjoy more traffic!
Even if you don’t see any improvement there’s no harm done so give it a try.
If you have no idea what I’m talking about here is what I mean:
No trailing slash = Good
http://www.seoadventures.com/2007/08/20/never-end-a-url-with-a-slash
Trailing slash = Bad
http://www.seoadventures.com/2007/08/20/never-end-a-url-with-a-slash/
seodude :: Aug.20.2007 :: Google, Links, Programming, Tips, Wordpress :: No Comments »
So for some random reason Google sees versions of your domain with and without www as unique content.
This is bad because Google hates duplicate content and it will rank both seperately.
To cure this we mod_rewrite once again using the following code.
Place this in your .htaccess file right after RewriteEngine On.
RewriteCond %{HTTP_HOST} ^yourdomain.com
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
It redirects all non www urls to www using a 301 redirect which Google is ok with.
seodude :: Aug.18.2007 :: Programming, Tips, Wordpress :: 1 Comment »
You always want to make dynamic links using mod_rewrite to enhance your rankings.
What’s frustrating is that you often want to turn article titles into seo and url friendly dash seperated strings but that’s a much harder problem to solve than it sounds.
Thankfully Wordpress is open source and one fine day I got the bright idea to just rip out their permalink processing functions and use them on my own website.
For an example of this see NuclearSushi.Com.
Using Wordpress functions I take the database entry id, the game platform, and the game title and run it through the Wordpress cleansing functions.
This is what I then get:
http://www.nuclearsushi.com/psp/16825/crazy-taxi-fare-wars
See how everything is lower cased, all special characters are removed, and spaces are replaced with dashes?
SIDE NOTE: Always use dashes to replace spaces. I have tried underscores and Google completely hates underscores and doesn’t parse them as though they were spaces. ALWAYS USE DASHES TO REPLACE SPACES!
Ok now onto where the functions are hiding.
Head on over to http://codex.wordpress.org/Function_Reference and scroll down to the “Formatting Functions” section on the right hand side.
You’ll see a lot of functions there but the one you want is called sanitize_title_with_dashes.
You’ll see that it is located within the formatting.php, or functions.php file in a standard Wordpress installation.
Find it, copy it, put it in your source and use it.
There are some dependancies so you’ll need to turn on good old php errors and watch to see what other functions that function wants and then head back into those files and grab them.
You’ll see some crazy Unicode conversion stuff along with special cases for all kinds of characters.
Why reinvent the wheel when a great version is already available for free is what I always say!
I hope this was helpful and as always have fun & keep coding!
seodude :: Aug.18.2007 :: Programming, Tips :: No Comments »
The god that is wordpress.org has an amazing page dedicated to SEO with wordpress.
Go there now even if your site doesn’t run wordpress it is chocked full of essential information for beginners.
seodude :: Aug.18.2007 :: General, Programming, Tips, Wordpress :: No Comments »