将静态页面 url 显示为不同的 url,这对 SEO 友好
我开发了一个网站,其中有一些静态页面。喜欢探索、回家、反馈。
这些的链接如下
website.com/views/explore.php
website.com/index.php
website.com/views/feedback.php
我想为上面提到的每个URL编写一个不同的SEO URL。
有可能吗?
即例如
website.com/views/explore.php 应转换/可见为 website.com/explore
website.com/views/feedback.php 应转换/可见为 website.com/give/feedback
等等
I have developed a site, which has some static pages. Like explore, home, feedback.
The link for these goes as follows
website.com/views/explore.php
website.com/index.php
website.com/views/feedback.php
I want to write a different SEO URL for each of the URL mentioned above.
Is it possible ?
i.e. for example
website.com/views/explore.php should be convereted/visible as website.com/explore
website.com/views/feedback.php should be convereted/visible as website.com/give/feedback
and so on
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可以使用这些 mod_rewrite 规则将请求重写为
/ explore
和/give/feedback
内部到/views/explore.php
和/views/feedback.php
:You can use these mod_rewrite rules to rewrite requests to
/explore
and/give/feedback
internally to/views/explore.php
and/views/feedback.php
:使用 .htaccess 文件,您可以更改网站上的任何网址。我喜欢这个文件。
with .htaccess file you can change any url on your site. i love this file.
如果您在 ISS 中托管网站,您可以尝试 IIS SEO 工具包。 &在 IIS 中设置动态 URL 本身
请参阅 Scott 关于通过 SEO 工具包改进 SEO
if you are hosting website in ISS the you can try IIS SEO toolkit. & set dynamic URL itself in IIS
see the indepth explaination by Scott about Imporve SEO by SEO Toolkit