ھي پلگ ان WordPress جي جديد 3 وڏين رليزز سان آزمايو نه ويو آھي. اهو ٿي سگهي ٿو وڌيڪ برقرار يا سپورٽ نه ٿي سگهي ۽ ٿي سگهي ٿو مطابقت جا مسئلا جڏهن ورڈپریس جي وڌيڪ تازي ورزن سان استعمال ڪيو وڃي.

Relative URL

وضاحت

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’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.

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.

انسٽاليشن

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’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’t treat them as valid URLs.

جائزا

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.
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 🙂
11 ڊسمبر 2018
Using WP 5.0 and Divi Theme, this works great, allowing me to deliver site via AWS CloudFront
20 جُون 2017
Using to test a local wordpress site with ngrok and worked without any issues. Thanks!
جمع: سڀ 26 تبصرا پڙهو

تعاون ڪندڙ & ڊولپرز

“Relative URL” اوپن سورس سافٽ ويئر آهي. ھيٺين ماڻھن ھن پلگ ان ۾ حصو ورتو آھي.

تعاون ڪندڙ

ترجمو ڪريو “Relative URL” توهان جي ٻولي ۾.

ڊولپمينٽ ۾ دلچسپي؟

ڪوڊ براؤز ڪريو، چيڪ ڪريو SVN مخزن، يا رڪنيت حاصل ڪريو ڊولپمينٽ لاگ پاران RSS.

لاگ تبدیل ڪريو

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’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