<?xml version="1.0" encoding="utf-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"><channel><title>MagicLen</title><link>https://magiclen.org/tag/url-prefix/feed</link><description>多元化原創文章，內容包羅萬象，有程式語言、網站應用、軟體介紹、硬體介紹、作業系統、旅行遊記、專題採訪、益智問題、文學創作，以及作者們的知識分享和作品分享。</description><language>zh-TW</language><lastBuildDate>Fri, 3 Apr 2026 23:15:47 +0000</lastBuildDate><sy:updatePeriod>hourly</sy:updatePeriod><sy:updateFrequency>8</sy:updateFrequency><sy:updateBase>1970-01-01T00:00+00:00</sy:updateBase><item><title>如何在Rust程式語言中處理網址的前綴？</title><link>https://magiclen.org/url-prefix</link><description><![CDATA[    <img src="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png" srcset="https://magiclen.org/wp-content/uploads/2018/04/rust-220x162.png 1x, https://magiclen.org/wp-content/uploads/2018/04/rust-440x324.png 2x, https://magiclen.org/wp-content/uploads/2018/04/rust-660x486.png 3x" alt="">
在開發Web應用程式的時候，為了要讓應用程式可以被設定在不同網域，或是不同的網址目錄下，通常會需要對應用程式進行「網址前綴」的設定。舉例來說，如果要把某個Web應用程式運作在「tool.magiclen.org」這個網域的「url」路徑下，我們可以將「https://tool.magiclen.org/url」這個「網址前綴」設定給該Web應用程式，讓它知道如何去正確處理它所用到的其它資源的路徑。...]]></description><category>Rust</category><category>Rust</category><category>url-prefix</category><guid>https://magiclen.org/url-prefix</guid><pubDate>Sun, 25 Nov 2018 20:00:22 +0800</pubDate><dc:creator>Magic Len</dc:creator></item></channel></rss>