生成站点地图 [英] Generating a site map

查看:74
本文介绍了生成站点地图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿,大家好,

对不起,如果这不是这篇文章的正确位置。

我正在构建一个脚本来为我生成站点地图。在大多数情况下它运行正常,但是会出现一些错误。

Google并不喜欢我的几个网址。例如,我有一个以trews.html结尾的网址。看起来这条线在网站地图中很好,但是当我在浏览器中输入网址时,我得到一个404错误,就像页面不存在一样。如果我删除网址并手动输入它然后工作正常..当我看到我最近访问过的网站时,它会列出t%08rews.html。作为其中之一。似乎perl正在诠释某些不存在的角色?我不确定。怎么能纠正这个?

Hey there everyone,
Sorry if this isnt the right place for this post.
I am building a script to generate a site map for me. For the most part it works fine, but a few errors are popping up.
Google isn''t liking several of my urls. For instance, i have a url that ends in "trews.html". It looks like this line is fine in the site map, but when i type the url into the browser i get a 404 error as if the page doesn''t exists. If i erase the url and type it out manually it works fine however.. and when i see the websites i recently visited, it lists "t%08rews.html" as one of them. It seems that perl is interpretting some kind of character that isnt there? I''m not sure. How could this be corrected?

推荐答案

如果没有看到一些代码,我们就不能说出你的问题是什么。另外,你可以发布一些预期的输出。


--Kevin
Without seeing some code it is we can''t tell what your problem is. Also, you might post some of the expected output.

--Kevin


我有一个程序生成我的所有html页面以及包含所有正在创建的网址的文本文件。似乎问题源于此,因为我的站点地图程序正在使用该文本文件来创建其站点地图。问题是我无法看到问题..在文本文件中它看起来很好,因为trews.html,但如果我将它复制到浏览器中,它无法找到该网站而不重写它。而且我不能真正发布代码,因为它很长,只是想知道是否有人之前看过这样的东西并且可以引导我走上正轨。
Well I have one program which is generating all of my html pages as well as a text file containing all of the urls that are being created. It seems as if the problem is stemming from there as my sitemap program is using that text file to create its site map. The problem is that I can''t see the problem.. in the text file it looks just fine as "trews.html", but if i copy it into the browser it cant find that site without me re-writing it. And I can''t really post the code as it is very long, just wondering if anyone had seen something like this before and could lead me on the right track.


将网址复制到单词看起来像trews.html一样正常,但是当从单词复制到浏览器时,它现在显示为t rews.html。
Copying the url into word it appears as normal as "trews.html", but when copying from word into the browser it now appears as "t rews.html".


这篇关于生成站点地图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆