简体   繁体   English

多余的字符添加到URL

[英]Extra character added to URL

Ok so I am working on this site (using wordpress), here's the thing; 好的,所以我正在这个网站上工作(使用wordpress),这是事实; it's only a small aesthetic feature but the main reason I'm asking this question is to discover the cause. 这只是一个很小的美学特征,但我问这个问题的主要原因是发现原因。 If you go to this section of the site you'll notice that you don't actually get sent to the link above, instead of 如果您转到网站的这一部分,您会发现实际上并没有发送到上面的链接,而是

/recipes/ you go to /recipesa/ which isn't (as far as I'm aware) set up as an automatic redirect, what's more in the back end of the site the code clearly points to /recipes : / recipes /您转到/ recipesa /(据我所知)未设置为自动重定向,此外,在该网站的后端,代码清楚地指向/ recipes:

/* Taken from the navigation bar code */

<li><a href="<?php echo home_url(); ?>/recipes">Recipes</a></li>

Anyone know why this happens? 有人知道为什么会这样吗? Cheers 干杯

Highly likely that your Recipes page was originally called "Recipesa" by accident and you renamed it, but the permalink didn't change because Wordpress doesn't do that. 您的“食谱”页面最初很可能是偶然被称为“ Recipesa”,并且您对其进行了重命名,但是由于Wordpress并未这样做,因此永久链接没有更改。

Go to Edit Pages in WP-Admin, then edit the Recipes page and check the permalink (directly below the page title textbox). 转到WP-Admin中的“编辑页面”,然后编辑“食谱”页面并检查永久链接(直接在页面标题文本框下方)。

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

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