Wishlist 0 ¥0.00

如何从 URL 中删除 .index.php

我们的 Joomla 4 教程为 Joomla 用户从基础到高级提供有用的教程/提示。 的分步说明 Joomla 4 网站的 URL 中删除 index.php 以创建友好的 url 系统

搜索引擎友好 (SEF)、人类可读或干净的 URL 是对人类和搜索引擎都有意义的 URL,因为它们解释了它们指向的特定页面的路径。

来自 Joomla! 文档 http://docs.joomla.org/

本教程也适用于 Joomla 3。

如何从您的 Joomla 站点 URL 中删除 .index.php

以下是带有和不带有“.index.php”的网址示例。

删除 Joomla URL 的 .index.php

如何从 Joomla URL 中删除 index.php

有 2 个简单的步骤 .index.php 为您的 Joomla 4 网站

  • 在 Joomla 4 中启用使用 URL 重写。
  • 将 htaccess.txt 重命名为 .htaccess

第 1 步:启用“使用 URL 重写”

中启用“使用 URL 重写” Joomla ,请转到您的 Joomla 仪表板 → 系统 → 全局配置,在页面右侧,找到 SEO 设置,启用 2 个选项:

  • 搜索引擎友好的 URL
  • 使用 URL 重写

配置 SEO 设置

第 2 步:将 htaccess.txt 文件重命名为 .htaccess

如果您使用 Apache 服务器,请确保在您的主机帐户上安装并启用了 mod_rewrite。 连接到您的 FTP 服务器,找到 htaccess.txt文件在您的站点根文件夹中并将其重命名为 .htaccess,现在 .index.php 将从您的网站网址中删除。

将 htaccess.txt 文件重命名为 .htaccess

如果您使用 IIS 7 服务器,请确保为您的主机帐户启用了 IIS URL 重写模块。 在激活使用 URL 重写选项之前将 web.config.txt 文件重命名为 web.config。

No comments

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.