I found that many nodes and files (Img, Video, PDF) names of the local websites do not conform to the naming standard.
These node and file names are part of the URLs. The URL is what the Web browser displays in the address bar.
Using standard URLs will help improve ranking and traffic from Google.
Create a standard URL (refer to https://moz.com/learn/seo/url)
-
URLs should be definitive but concise. By seeing only the URL, the user (and search engine) can understand the topic of the page.
-
Create unique titles, avoid creating duplicate content, and don’t use meaningless numbers and dates.
-
Use English lowercase letters and hyphens(-) to separate words. URLs should not use underscores, spaces, or any other characters to separate words.
Attached are operation documents and conversion tool (Automatically converts Spaces and underscores to hyphens(-) and uppercase to lowercase)
我发现国家网站的很多节点名和文件(Img, Video, PDF)名不符合命名规则。
这些节点和文件名是URL的一部分。Web浏览器在地址栏中显示的就是URL。
使用标准的URL将有助于提高谷歌的排名和流量。
创建一个标准的URL
-
url应该是明确而简洁的。通过只看到URL,用户(和搜索引擎)就可以明白网页的主题内容。
-
创建独特的标题,避免创建重复的内容,也不要使用无意义的数字和日期。
-
单词之间用英文小写字母和连字符(-)隔开。url不应该使用下划线、空格或任何其他字符来分隔单词。
附件是网站节点、文件重命名操作说明和转换工具 (自动将空格和下划线转换为连字符(-)以及大写转换为小写)
Standard URLs
Un-standard URLs
Sentences are too long
Meaningless numbers and dates Abbreviations
convert-spaces
<html lang="en">
<meta charset="utf-8">
<head>
<title>Spaces are converted to bars</title>
</head>
<body>
<div><h2>Spaces in English sentences are converted to bars</h2></div>
<div>
<input id="uin" type="text" name="uin" size="80" />
<button onclick="return convertr();">submit</button>
</div>
<br/>
<div id="jieguo"></div><br/>
<button onClick="copyr();">copy</button>
<script>
function convertr() {
var x = document.getElementById("uin").value;
var params=x.replace(/[\s_]/g, "-");
params = params.toLowerCase();
document.getElementById("jieguo").innerHTML = params;
}
</script>
<script>
function copyr() {
var x = document.getElementById("jieguo");
// x.select();
//document.execCommand("Copy");
copy_data(x);
//alert("Ready to use.");
}
function copy_data(containerid) {
var range = document.createRange();
range.selectNode(containerid); //changed here
window.getSelection().removeAllRanges();
window.getSelection().addRange(range);
document.execCommand("copy");
window.getSelection().removeAllRanges();
//alert("data copied");
}
</script>
</body>
</html>