PluginSift
PluginsThemesCompare
Directory
  • Plugins
  • Themes
  • Compare Plugins
Plugin Comparisons
  • SEO
  • Security
  • Ecommerce
  • Page Builders
  • Caching
  • Backup
  • Forms
  • Analytics
Resources
  • About
  • Contact
  • llms.txt

© 2026 PluginSift. Data sourced from WordPress.org. · [email protected]

  1. Home
  2. Plugins
  3. Link
  4. Absolute-to-Relative URLs
Absolute-to-Relative URLs icon

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.

By Steven Vachon·Link·Free
5(2 reviews)
·20 active installs·Updated 13 years ago
DownloadVisit HomepageCompare

As of April 2026, Absolute-to-Relative URLs is a WordPress link plugin with 20 active installations and a 5/5 rating from 2 reviews. It has been downloaded 7.0K+ times in total. Requires WordPress 3.2+ and PHP false+. Available on WordPress.org since 2011. Last updated 13 years ago — may have compatibility concerns. Top alternative: Custom Post Type Permalinks.

5/52 reviews
20active installs
7.0K+total downloads
15 yearssince 2011

Overview

If you were to use this on a website like http;//example.com/test/testing/, you would get results like these:

    • Before: http;//example.com/test/another-test/#anchor
    • After: ../another-test/#anchor
    • Before: http;//example.com/wp-content/themes/twentyten/style.css
    • After: /wp-content/themes/twentyten/style.css
    • Before: https;//example.com/wp-content/themes/twentyten/style.css
    • After: https;//example.com/wp-content/themes/twentyten/style.css
    • Before: http;//google.com/test/
    • After: //google.com/test/
    • 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-C…

Read full description on WordPress.org

Ratings & Reviews

52 reviews
5 ★
2
4 ★
0
3 ★
0
2 ★
0
1 ★
0

Compatibility

WordPress3.2+ requiredTested up to 3.4.2
PHPfalse+ required

Top Alternatives to Absolute-to-Relative URLs

Custom Post Type Permalinks icon
Custom Post Type Permalinks
4.8200K+ installsUpdated 3 days ago
ViewCompare
Custom Permalinks icon
Custom Permalinks
4.1100K+ installsUpdated 5 months ago
ViewCompare
Page Links To icon
Page Links To
4.9100K+ installsUpdated 3 days ago
ViewCompare
Title and Nofollow For Links (Classic Editor) icon
Title and Nofollow For Links (Classic…
4.530K+ installsUpdated 3 years ago
ViewCompare
VK Link Target Controller icon
VK Link Target Controller
530K+ installsUpdated 3 days ago
ViewCompare
View all link plugins →

Frequently Asked Questions

Changelog

0.3.4

  • Empty, hash-only anchors ("#") are no longer invalidated to "/"
View full changelog on WordPress.org

Contributors

Steven VachonSteven Vachon
Plugin Info
Version
0.3.4
Last Updated
Mar 28, 2013
WP Requires
3.2+
Tested Up To
3.4.2
PHP Requires
false+
Active Installs
20
Downloads
7.0K+
Added
Mar 23, 2011
Business
Free

Tags

linklinksabsolutefunction

Developer

S
Steven Vachon
4 plugins0.0M+ total installs
View all plugins →

Quick Compare

Absolute-to-Relative URLs vs Custom Post Type Permalinks→Absolute-to-Relative URLs vs Custom Permalinks→Absolute-to-Relative URLs vs Page Links To→

Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.