wordpress plugins

Absolute-to-Relative URLs

A **function()** for use in shortening URL links. This plugin is meant for dev work and does not automatically shorten URLs.

plugin Absolute-to-Relative URLs
5 out of 5 based on 1 user ratings.


Version: 0.3.4

If you were to use this on a website like http;//, you would get results like these:Before: http;//
After: ../another-test/#anchor

Before: http;//
After: /wp-content/themes/twentyten/style.css

Before: https;//
After: https;//

Before: http;//
After: //

Before: ../../../../../../../../#anchor
After: /#anchor
After ($output_type=1): ../../#anchor

All string parsing. No directory browsing.

If you're looking for a plugin that will automatically convert all URLs on your WordPress site, instead check out my other plugin, WP-HTML-Compression. Before you copy this code and add it into your own, keep in mind that there will probably be future updates. Keeping the code within an installed plugin will make sure that you're notified.


Requires: 3.2 or higher
Compatible up to: 3.4.2
Last Updated: 3 years ago
Active Installs: 100+

Download URL