将静态页面 url 显示为不同的 url,这对 SEO 友好

发布于 2024-08-28 10:53:35 字数 387 浏览 5 评论 0原文

我开发了一个网站,其中有一些静态页面。喜欢探索、回家、反馈。

这些的链接如下
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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

情绪少女 2024-09-04 10:53:35

您可以使用这些 mod_rewrite 规则将请求重写为 / explore/give/feedback 内部到 /views/explore.php/views/feedback.php

RewriteEngine on
RewriteRule ^explore$ views/explore.php [L]
RewriteRule ^give/feedback$ views/feedback.php [L]

You can use these mod_rewrite rules to rewrite requests to /explore and /give/feedback internally to /views/explore.php and /views/feedback.php:

RewriteEngine on
RewriteRule ^explore$ views/explore.php [L]
RewriteRule ^give/feedback$ views/feedback.php [L]
反话 2024-09-04 10:53:35

使用 .htaccess 文件,您可以更改网站上的任何网址。我喜欢这个文件。

with .htaccess file you can change any url on your site. i love this file.

倥絔 2024-09-04 10:53:35

如果您在 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文