URLS
Version 2.0.2

在純PHP中使URL看起來不錯,這幾乎不可能。 URL是一個微型框架,可採用醜陋的URL,並允許您以任何想要的方式重寫它。這意味著您可以將此URL轉換為https://examplesite.com/blog/home.php?post=1 1, https://examplesite.com/blog/post/1/完全沒有.htaccess !
urls_install.php頁面,然後按照簡單的說明進行操作即可。.htaccess因此它將無法在NGINX服務器上使用。但是,我們正在研究NGINX版本。 urls_install.php文件。有關更完整的示例,請參見Guides/install.md。
blog-home.php的新文件,然後填寫: <!DOCTYPE html >
< html >
< head >
< meta charset =" utf-8 " >
< title > My Blog - Home </ title >
</ head >
< body >
< h1 > This is my Blog </ h1 >
< p > Welcome! </ p >
</ body >
</ html > <?php
/*
URLS framework url config file.
Add your paths here:
ex. $urls->path('blog/', 'blog-home.php', true);
*/
include ' urls/Urls.php ' ;
Urls:: $ base = ' / ' ;
$ urls = new Urls ;
$ urls -> exe ();
?>$urls->path('blog/', 'blog-home.php', true);在您的設置文件中include 'urls/Urls.php'; 。這是現在的文件: <?php
/*
URLS framework url config file.
Add your paths here:
ex. $urls->path('blog/', 'blog-home.php', true);
*/
include ' urls/Urls.php ' ;
Urls:: $ base = ' / ' ;
$ urls = new Urls ;
$ urls -> path ( ' blog/ ' , ' blog-home.php ' , true );
$ urls -> exe ();
?>http://yourdomain.com/blog/ 。如果您確實指定了基本URL,請訪問http://yourdomain.com/<your base url>/blog/ 。您應該看到blog-home.php文件的內容。 
有關更多示例,請參見指南
可以在https://github.com/urls-framework/urls/wiki上找到Wiki的Wiki
可以在docs.md文件上找到URL框架的文檔。
該軟件在Apache 2.0許可下分佈。有關更多信息,請閱讀許可證文件。
目前,URL框架是一個私人維護的項目。如果您發現任何錯誤或有任何建議,請將其提交給問題跟踪器。如果您想編輯Wiki,請隨時使用。但是,我們確實要求您遵循有關如何發布的準則。有關更多信息,請參見Wiki中的貢獻頁面
如果您發現任何錯誤,請將其報告給問題跟踪器。如果您發現主要的安全漏洞,請不要使用問題跟踪器報告它們。有關更多信息,請參見安全文件。
版權所有©2022 Micah Baumann