Title: Relative URL ShortCode
Author: mainsufian
Published: <strong>2016 年 3 月 10 日</strong>
Last modified: 2023 年 2 月 21 日

---

搜尋外掛

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

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/relative-url-shortcode/assets/icon-256x256.png?rev=1368510)

# Relative URL ShortCode

 由 [mainsufian](https://profiles.wordpress.org/mainsufian/) 開發

[下載](https://downloads.wordpress.org/plugin/relative-url-shortcode.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/relative-url-shortcode/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/relative-url-shortcode/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/relative-url-shortcode/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/relative-url-shortcode/#developers)

 [技術支援](https://wordpress.org/support/plugin/relative-url-shortcode/)

## 外掛說明

Now its easy to change domains and move your wordpress blog from subdomain to parent
domain like from localhost to live domain you just need to use this shortcode [base_url]
as your base url and images So now all links and images are fine after transfer 
site from localhost to live you don’t need to adjust links after change domain.

ShortCode
 [base_url]

## 螢幕擷圖

[⌊You can see diffrance in normal link and normal image in wordpress and in link
and image with ShorCode.⌉⌊You can see diffrance in normal link and normal image 
in wordpress and in link and image with ShorCode.⌉[

You can see diffrance in normal link and normal image in wordpress and in link and
image with ShorCode.

## 安裝方式

** From your WordPress dashboard **

Visit ‘Plugins > Add New’ Search for ‘Relative URL ShortCode’ Activate ‘Relative
URL ShortCode’ from your Plugins page.

** From WordPress.org **

Download ‘Relative URL ShortCode’. Upload the ‘Relative URL ShortCode’ directory
to your ‘/wp-content/plugins/’ directory, using your favorite method (ftp, sftp,
scp, etc…) Activate ‘Relative URL ShortCode’ from your Plugins page.

## 常見問題集

### I need to change something after change domain?

No. we always use your site base url so you do not need any configuration for change
domain.

### I need to change any configuration after activate?

No. we always use your site base url so you do not need any configuration after 
activate.

## 使用者評論

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

### 󠀁[Almost works in 2024](https://wordpress.org/support/topic/almost-works-in-2024/)󠁿

 [dmtalon](https://profiles.wordpress.org/dmtalon/) 2024 年 2 月 26 日

was hoping to use this to make a new site I’m spinning up to replace an existing/
old one more ‘move proof’ however for some reason the colon is missing in the URL
that is generated with the short code. My site is using https, and the urls created
are ‘https//temp.domain.com’ without the colon so it fails. I looked at the code
a bit (not a developer) and it wasn’t obvious how I might modify it to work.

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

### 󠀁[Great plugin](https://wordpress.org/support/topic/great-plugin-13794/)󠁿

 [Faisal Sarfraz](https://profiles.wordpress.org/faisals999/) 2017 年 5 月 8 日

Simple and to-the-point plugin. Exactly what I was looking for

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

### 󠀁[Super simple!](https://wordpress.org/support/topic/super-simple-38/)󠁿

 [lennekel](https://profiles.wordpress.org/lennekel/) 2017 年 3 月 27 日 1 則留言

Great little plugin. You need to replace the base url by [base_url]. That’s all.
Works for images and for links in pages. Very small drawback: doesn’t work in text
widgets… Thanks! Lenneke

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

### 󠀁[shift content then very useful](https://wordpress.org/support/topic/shift-content-then-very-useful/)󠁿

 [mainsufian](https://profiles.wordpress.org/mainsufian/) 2016 年 9 月 3 日

This Plugin is Best when you need to work on test domain like localhost or on some
sub domain and you need to move data or transfer complete site then it’s best to
keep links fine.

 [ 閱讀全部 4 則使用者評論 ](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Relative URL ShortCode〉的開發相關工作。

參與者

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

[將〈Relative URL ShortCode〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/relative-url-shortcode)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/relative-url-shortcode/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/relative-url-shortcode/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/relative-url-shortcode/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/relative-url-shortcode/)。

## 變更記錄

#### 1.0

 * it is a first version.

## 中繼資料

 *  版本 **1.1.0**
 *  最後更新 **3 年前**
 *  啟用安裝數 **600+**
 *  WordPress 版本需求 ** 3.0.1 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.1.10**
 *  語言
 * [English (US)](https://wordpress.org/plugins/relative-url-shortcode/)
 * 標籤:
 * [relative](https://tw.wordpress.org/plugins/tags/relative/)[shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
   [url](https://tw.wordpress.org/plugins/tags/url/)
 *  [進階檢視](https://tw.wordpress.org/plugins/relative-url-shortcode/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  3 個 5 星使用者評論     ](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/?filter=4)
 *  [  1 個 3 星使用者評論     ](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/?filter=1)

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

[查看全部使用者評論](https://wordpress.org/support/plugin/relative-url-shortcode/reviews/)

## 參與者

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

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/relative-url-shortcode/)

## 贊助

想要支援這個外掛的發展嗎？

 [ 贊助這個外掛 ](https://tw.wordpress.org/plugins/relative-url-shortcode/?output_format=md#)