简体   繁体   English

如何使静态页面永久链接看起来漂亮

[英]How to make static page permalink look pretty

I have create new page with my custom template. 我已经使用自定义模板创建了新页面。 This page will be used by users to ask questions. 用户将使用此页面来提问。 The defult permalink to my page is http: //www.mysite.com/?page_id=26. 我页面的永久链接是http://www.mysite.com/?page_id=26

This look ugly in address bar in the browser. 这在浏览器的地址栏中看起来很丑。 I want it look pretty. 我希望它看起来很漂亮。 For example just like in stackoverflow http://stackoverflow.com/questions/ask 例如,就像在stackoverflow中一样http://stackoverflow.com/questions/ask

Please advice where to look at. 请建议在哪里看。

Set your posts permalink to anything other than the default one (from Settings -> Permalinks). 将您的帖子永久链接设置为默认链接以外的任何其他内容(从“设置”->“永久链接”中)。

Create a page named Questions, and then create a page Ask with the Question page as its parent. 创建一个名为“问题”的页面,然后创建一个以“问题”页面为父页面的“询问”页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM