[英]permalink doesn't work properly
I have an issue with wordpress' permalink. 我对wordpress的永久链接有疑问。 So, there is a blog, there is a note/notes. 因此,有一个博客,有一个便笺。 when i click the link (with href=php the_permalink()) note is not shown but main page loads (not blog's page). 当我单击链接(带有href = php the_permalink())时,未显示注释,但加载了主页(不是博客页面)。 How can i fix it? 我该如何解决?
http://www.xn--d1aa4fb.xn--p1ai/blog/ HTTP://www.xn--d1aa4fb.xn--p1ai/blog/
I have another version of this site and it works properly: http://dyadya.o98110rn.bget.ru/blog/ 我有该网站的另一个版本,它可以正常运行: http : //dyadya.o98110rn.bget.ru/blog/
The problem is with the CSS path in the inner pages. 问题在于内页中的CSS路径。 You do not use the complete URL to call assets, like this: 您不使用完整的URL来调用资产,如下所示:
http://......com/assets/css/your.css
You use the folder navigation, like this: 您可以使用文件夹导航,如下所示:
./assets/css/your.css
In your inner pages, the css file will not be found. 在您的内页中,找不到css文件。 To solve this, add this tag inside your <head></head>
要解决此问题,请将此标签添加到<head></head>
<base href="https://yoursite.com/"/>
With this, in yout inner pages, the pathi will not use the pages URL, will use the BASE HREF to look for the assets. 这样,在您的内部页面中,路径将不使用页面URL,而将使用BASE HREF查找资产。
I hope it helps! 希望对您有所帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.