Title: Relative URL
Author: Sparanoid
Published: <strong>Ọwẹ́wẹ̀  16, 2012</strong>
Last modified: Ògún  11, 2021

---

Ṣàwárí àwọn plugin

![](https://ps.w.org/relative-url/assets/banner-772x250.png?rev=2581668)

Plugin yìí **kò tíì ṣe àyẹ̀wò pẹ̀lú àwọn ìtújáde mẹ́ta pàtàkì tó kẹ́yìn ti WordPress**.
Ó lè jẹ́ pé a kò tọ́jú tàbí ṣe àtìlẹ́yìn fún un mọ́, ó sì lè ní àwọn ọ̀ràn ìbámu
nígbà tí a bá lò ó pẹ̀lú àwọn ẹ̀yà WordPress tuntun.

![](https://ps.w.org/relative-url/assets/icon.svg?rev=1568302)

# Relative URL

 Láti ọwọ́ [Sparanoid](https://profiles.wordpress.org/sparanoid/)

[Ṣe ìgbàsílẹ̀](https://downloads.wordpress.org/plugin/relative-url.0.1.8.zip)

 * [Àwọn àlàyé](https://yor.wordpress.org/plugins/relative-url/#description)
 * [Àwọn àgbéyẹ̀wò](https://yor.wordpress.org/plugins/relative-url/#reviews)
 *  [Ìgbéwọlẹ̀](https://yor.wordpress.org/plugins/relative-url/#installation)
 * [Ìdàgbàsókè](https://yor.wordpress.org/plugins/relative-url/#developers)

 [Ìrànlọ́wọ́](https://wordpress.org/support/plugin/relative-url/)

## Àpèjúwe

Relative URL applies the `wp_make_link_relative` function to links (posts, categories,
pages, etc.) to convert them to relative URLs. Useful for developers when debugging
local WordPress instance on a mobile device (iPad, iPhone, etc.).

**Notice**: This plugin SHOULD be used for local development only. I havenÌtumọ̀
Yorùbá: ’t tested on a production environment; it **may** work with some issues,
like unwanted URLs in RSS feed or sharing URLs are replaced with relative URLs, 
etc.

More information please visit my [site](https://sparanoid.com/work/relative-url/).

For example:

    ```
    http://localhost:8080/wp/
    ```

Will be converted to:

    ```
    /wp/
    ```

And..

    ```
    http://localhost:8080/wp/2012/09/01/hello-world/
    ```

Will be converted to:

    ```
    /wp/2012/09/01/hello-world/
    ```

And..

    ```
    http://localhost:8080/wp/wp-content/themes/twentyeleven/style.css
    ```

Will be converted to:

    ```
    /wp/wp-content/themes/twentyeleven/style.css
    ```

Then after activating this plugin, you can simply access your local instance using`
http://10.0.1.5:8888/wp/` on your iPad or other mobile devices without having styles
and navigation issue.

## Ìgbéwọlẹ̀

WordPress (Also works on multisite enabled instance):

 1. Upload the extracted files to the `/wp-content/plugins/` directory, or just install
    this plugin from your WordPress backend.
 2. In ‘Plugins’ page, choose ‘Activate’

## FAQ

### What if I deactivate this plugin?

The URLs will be changed back to absolute URLs again, thereÌtumọ̀ Yorùbá: ’s no 
database writes with this plugin.

### Why this plugin is not recommend for production environment?

URLs in RSS feed are also replaced to relative URLs with this plugin, this could
causes some issues for RSS readers that they will be confused for URLs without host.
Shared URLs (ie Jetpack Sharing module) are also replaced to related URLs, Twitter,
Facebook or other social sites wonÌtumọ̀ Yorùbá: ’t treat them as valid URLs.

## Àwọn àgbéyẹ̀wò

![](https://secure.gravatar.com/avatar/5be115bc2ff23d0aa2259eb41982afa8a1b9513634d4643f4969b4cc602349a6?
s=60&d=retro&r=g)

### 󠀁[Does not work with WordPress 5.9.1](https://wordpress.org/support/topic/does-not-work-with-wordpress-5-9-1/)󠁿

 [ams047](https://profiles.wordpress.org/ams047/) Ẹrẹ́nà 7, 2022

Unfortunately you cannot create posts or pages when version 0.1.8 of this plugin
is active with WordPress 5.9.1

![](https://secure.gravatar.com/avatar/0d22653648e8ba9d7b5375257568a4e25132403acfe667cb4ee4f06e10636761?
s=60&d=retro&r=g)

### 󠀁[Completely useless](https://wordpress.org/support/topic/completely-useless-24/)󠁿

 [tsf999](https://profiles.wordpress.org/tsf999/) Ọ̀pẹ 23, 2021

Not doing anything with WP 5.8. And sadly, this is the 3rd and the last available
plugin I tried with no luck.

![](https://secure.gravatar.com/avatar/e32986fa7129fb596d014930de13281a8f6ab718dc65237844664ebf8a65ccea?
s=60&d=retro&r=g)

### 󠀁[Very good extension 🙂](https://wordpress.org/support/topic/very-good-extension-13/)󠁿

 [instinctcreatif](https://profiles.wordpress.org/instinctcreatif/) Agẹmọ 18, 2019

This makes life easier for local development. I use it with ngrok to show my projects
to my clients 🙂 That works well! Do not forget to deactivate it when you put your
website on the final server online 🙂

![](https://secure.gravatar.com/avatar/38661d707f6a81eb0c2855c2f16143a3c744b89e8ef63044fc05fceb9b28f46a?
s=60&d=retro&r=g)

### 󠀁[Great w/ WP 5.0](https://wordpress.org/support/topic/great-w-wp-5-0/)󠁿

 [Mike Garde](https://profiles.wordpress.org/bldware/) Ọ̀pẹ 11, 2018

Using WP 5.0 and Divi Theme, this works great, allowing me to deliver site via AWS
CloudFront

![](https://secure.gravatar.com/avatar/57dc18b5c8b56a230c69ef24540e0d327599f885a61ab126d8cd0413cfb3e926?
s=60&d=retro&r=g)

### 󠀁[Great plugin, It make easy to relative url.](https://wordpress.org/support/topic/great-plugin-it-make-easy-to-relative-url/)󠁿

 [dipraj2008](https://profiles.wordpress.org/dipraj2008/) Ọwẹ́wẹ̀ 6, 2017

Relative url

![](https://secure.gravatar.com/avatar/443ec36776d4a791ee72009853700467336d65ec123875031dfc5a015a8b958c?
s=60&d=retro&r=g)

### 󠀁[Perfect for ngrok!](https://wordpress.org/support/topic/perfect-for-ngrok/)󠁿

 [renattto](https://profiles.wordpress.org/renattto/) Òkúdù 20, 2017

Using to test a local wordpress site with ngrok and worked without any issues. Thanks!

 [ Ka gbogbo àwọn àgbéyẹ̀wò 26 ](https://wordpress.org/support/plugin/relative-url/reviews/)

## Àwọn Olùkópa & Olùgbéejáde

“Relative URL” jẹ́ ètò ìṣàmúlò orísun ṣíṣí sílẹ̀. Àwọn ènìyàn wọ̀nyí ti ṣe ìkópa
sí plugin yìí.

Àwọn Olùkópa

 *   [ Sparanoid ](https://profiles.wordpress.org/sparanoid/)

[Túmọ̀ “Relative URL” sí èdè rẹ.](https://translate.wordpress.org/projects/wp-plugins/relative-url)

### Ṣe o nífẹ̀ẹ́ sí ìdàgbàsókè?

[Ṣàwárí koodu](https://plugins.trac.wordpress.org/browser/relative-url/), ṣàyẹ̀wò
[ibi ìpamọ́ SVN](https://plugins.svn.wordpress.org/relative-url/), tàbí ṣe àgbékalẹ̀
sí [àkọsílẹ̀ ìdàgbàsókè](https://plugins.trac.wordpress.org/log/relative-url/) nípasẹ̀
[RSS](https://plugins.trac.wordpress.org/log/relative-url/?limit=100&mode=stop_on_copy&format=rss).

## Àkọsílẹ̀ àwọn àyípadà

#### 0.1.8

 * Compatibility check for 5.8, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 0.1.7

 * Compatibility check for 5.0, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 0.1.6

 * Fix ob_end_flush errors

#### 0.1.5

 * Use buffer method again, itÌtumọ̀ Yorùbá: ’s better with less issues since it
   mainly works for development environment.

#### 0.1.4

 * Compatibility check for 4.6 and 4.7, nothing new, just bump version to tell everyone
   this plugin still works.

#### 0.1.3

 * Compatibility check for 4.5, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 0.1.2

 * Fix: reverted back to original method, sorry for the inconvenience.

#### 0.1.1

 * Fix: missing URL for inline sccripts

#### 0.1.0

 * Completely rewrite it from the ground up, now EVERY links, include the ones in
   your dashboard will be replaced with Relative URLs!

#### 0.0.13

 * Compatibility check for 4.4, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 0.0.12

 * Fix PHP error with latest WordPress 4.3

#### 0.0.11

 * External resources no longer processed.
 * Compatibility check for 4.2.2

#### 0.0.10

 * Compatibility check for 4.1 and 4.1 alpha, nothing new, just bump version to 
   tell everyone this plugin still works.

#### 0.0.9

 * Update readme

#### 0.0.8

 * Compatibility check for 3.7, 3.8, and 3.9 alpha, nothing new, just bump version
   to tell everyone this plugin still works.

#### 0.0.7

 * Compatibility check for 3.6, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 0.0.6

 * Update donate link, If you like this plugin, please consider buying me a cup 
   of coffee.

#### 0.0.5

 * Update plugin description and page design on sparanoid.com, check it out: http://
   sparanoid.com/work/relative-url/ props @lianghai

#### 0.0.4

 * Update description, props @lianghai

#### 0.0.3

 * Compatibility check for 3.5, nothing new, just bump version to tell everyone 
   this plugin still works.

#### 0.0.2

 * Moving plugin development repo from WordPress.org to GitHub. You can find the
   new repo at https://github.com/sparanoid/relative-url

#### 0.0.1

 * First release

## Àkójọpọ̀ Meta

 *  Ẹ̀yà **0.1.8**
 *  Ìgbàgbọ́hùn tó kẹ́yìn **ọdún 5 sẹ́yìn**
 *  Àwọn ìgbéwọlẹ̀ tó ṣiṣẹ́ **3,000+**
 *  Ẹ̀yà WordPress ** 2.1.0 tàbí ju bẹ́ẹ̀ lọ **
 *  Dánwò dé **5.8.13**
 *  Èdè
 * [English (US)](https://wordpress.org/plugins/relative-url/)
 * Àwọn àmì
 * [admin](https://yor.wordpress.org/plugins/tags/admin/)[administration](https://yor.wordpress.org/plugins/tags/administration/)
   [comment](https://yor.wordpress.org/plugins/tags/comment/)[comments](https://yor.wordpress.org/plugins/tags/comments/)
   [content](https://yor.wordpress.org/plugins/tags/content/)
 *  [Ìwòye Tó Péye](https://yor.wordpress.org/plugins/relative-url/advanced/)

## Àwọn ìbò

 4.2 lára àwọn ìràwọ̀ 5.

 *  [  20 5-star reviews     ](https://wordpress.org/support/plugin/relative-url/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/relative-url/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/relative-url/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/relative-url/reviews/?filter=2)
 *  [  5 1-star reviews     ](https://wordpress.org/support/plugin/relative-url/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/relative-url/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/relative-url/reviews/)

## Àwọn Olùkópa

 *   [ Sparanoid ](https://profiles.wordpress.org/sparanoid/)

## Ìrànlọ́wọ́

Nǹkan wà tí o fẹ́ sọ? Ṣé o nílò ìrànlọ́wọ́?

 [Wo àpéjọ ìrànlọ́wọ́](https://wordpress.org/support/plugin/relative-url/)

## Ṣe ìtọrẹ

Ṣé o fẹ́ ṣe àtìlẹ́yìn fún ìlọsíwájú plugin yìí?

 [ Ṣe ìtọrẹ sí plugin yìí ](https://sparanoid.com/donate/)