WordPress Relative URL - Why use Absolute URLs?

So you want to know why WordPress uses an absolute URL when creating a link within your own WordPress site? When WordPress stores an absolute URL in the database, it makes it harder to create test or development versions of your site. I normally solve this by making the site name point to the server I want (perhaps another article on this). Another alternative is to run some database scripts to change your site name in the database stored URLs.

Some reasons for WordPress absolute URL usage in favor of relative URLs can be found in an answer for this StackOverflow question quoting a WordPress lead core developer.

  • Performance may be better as there is processing involved to construct a WordPress relative URL.

  • the root URL (ie /) can change depending on your setup of WordPress. Changing relative URLs is more error prone.

  • Internally WordPress requires absolute URLs in certain areas and processing this is considered a potential area to introduce programming bugs.

  • Some plugins do not handle relative URLs correctly. SEO Guru Yoast is also quite vocal about relative URLs and issues they have caused himself and also for his clients including:

  • Duplicate Content of your test server

    • an accidental link to a test environment version of your site can lead to duplicate content issues by accidentally indexing your test site.
  • Spider Traps

    • a relative link ./oops instead of ../oops, can cause a recursive link like /page/oops/oops/oops/ etc. Best not to annoy Google ;) Also see our upcoming article about trailing slashes on URLs. https://example.com/test is a different URL to https://example.com/test**/**

Read More

Pingdom Website Speed Test Comparison - SEO Diary

Pingdom are know for their website uptime tracking, but they also have their popular Pingdom Website Speed Test tool we can add to our SEO Diary.

I was having some troubles running the tests. I should probably do some runs from different data centers as currently RationalDev is hosted on CrocWeb shared hosting in Montreal, Quebec, Canada and PortableCoffee is on a Vultr VPS in Silicon Valley.

Pingdom RationalDev San Jose

Read More

Wordpress Editor Image Paste Plugins

WordPress image paste... having to download or save images and then add them to the media library was driving me crazy! Automatic really should build image copy and paste into WordPress. It is such a massive time saver!

Anyway, paste image doesn't seem to be available by default, but have I found two potential options:

OnePress Image Elevator (free)

Read More

Best WordPress Comments Plugin

So which is the best WordPress comments plugin? This is a pretty divisive topic.

Comment spam is one of the huge issues any WordPress administrator will face. Personally, I got annoyed with having to deal with it and turned them all off. I am now looking at turning my Wordpress comments back on. My social diary experiment won't work so well without feedback!

Here are some of the best WordPress comment options:

Read More

Wordpress Image Optimization

I've previously looked at a few different WordPress plugins for Image Optimization for PortableCoffee.com.

As I am posting a lot of images at the moment, it is important to squish those bitz. This makes my site load faster, which is of course good for SEO.

EWWW Image Optimizer

Read More