类别

有特色的模板

WordPress. How to create a 重定向 from a 首页 页面 to any URL using the PHP 重定向

Guillaume杜马斯 2020年1月2日
等级: 5.0/5. 从1票开始.
请稍等...

This tutorial is going to show you how to create a 重定向 from WordPress 首页 页面 to any URL using the PHP 重定向.

WordPress. How to create a 重定向 from a 首页 页面 to any URL using the PHP 重定向

为了加上a 重定向 函数 到你的 WordPress模板,你应执行以下步骤:

  1. 登录你的 指示板 然后去 外观 -> 编辑器中,选择 主页页面模板(Page - 首页.php):

    WordPress._How_to_create_a_重定向_from_a_首页_页面_to_any_URL_using_the_PHP_重定向-1

    如果你没有 主页 页面模板 in your theme folder, you should copy it t在这里. To do that, you need to copy the file 页面-首页.php目录 wp-content /主题/ CherryFramework to wp-content /主题/ themeXXXXX.

  2. 举个例子, 重定向 我们的主页到联系页面. In order to do that, add the following code right 之前 get_header(); 函数:

    美元的位置 = get_site_url () . “/接触”;
    Wp_重定向 (美元的位置, 301);
    退出;						

    WordPress._How_to_create_a_重定向_from_a_首页_页面_to_any_URL_using_the_PHP_重定向-2

    You can assign any internal/external location to the 美元的位置 变量. If it’s an internal location, you should append a call to the get_site_url () 函数 之前 鼻涕虫 如上面的示例所示.

  3. 将更改保存到 页面-首页.php 文件 更新 文件 按钮:

    WordPress._How_to_create_a_重定向_from_a_首页_页面_to_any_URL_using_the_PHP_重定向-3

    Now when you enter your 首页 页面 URL, it will automatically 重定向 转到另一页. Feel free to apply this method to any of your 页面模板s besides the 主页 页面模板.

Feel free to check the detailed video tutorial below:

WordPress. How to create a 重定向 from a 首页 页面 to any URL using the PHP 重定向

How to Redirect WordPress Page to Another URL via 网站 维护服务

Dealing with a WordPress 页面 and its 函数s is rather uncomplicated even without attracting technical specialists. 然而, if a 页面 owner would like to save their time on-site their upkeep, it makes sense to apply to professionals from Templateog体育首页 WordPress网站维护 & 支持.

Suitable managing tools for WordPress 重定向 首页页面 is only one of 20+ duties that Templateog体育首页 can submit. Emergency care, regular reports, and site 表演 check are affordable as a part of the subscription.

Templateog体育首页 支持 Service will help 页面 owners who:
  1. Start working with a new or wants to 更新 现有站点.
  2. 想要 重定向 WordPress 页面 to another URL but are unable to manage it on their own.
  3. 没有时间去维持和 更新 当前站点的操作.
  4. Need assistance from experts on how to manage multiple web segments.
  5. I wish to be sure that their 页面s are protected from any sort of 恶意软件, deliver relevant loading speeds on various devices, and kept up-to-date.

维护 & 支持 department can also develop customized assistance kits for business owners. 它有助于 重定向 将WordPress页面转到另一个URL. The package will include building a 页面 with any theme 从 web, speed up the site 表演,并促进网站的转换和 搜索引擎优化.

Templateog体育首页 offers round-a-cloak assistance on a monthly or an annual basis. Site owners can choose from two support packages: Essential or Premium. Besides daily backups, emergency care, proactive 插件 refreshments, and some other basic services, the Premium package offers:
  • 搜索引擎优化 基本设置和咨询;
  • 安全保护;
  • 开发人员的小时;
  • WooCommerce支持.

Moreover, site owners with specialized requests, e.g. WordPress 重定向 函数, will get from 10% to 20% for their individual package. The package price starts from $29/month or $289/year.

在寻找如何 重定向 a link 转到另一页 in WordPress, think of subscription to the Templateog体育首页 support service. A team of technical experts will check and keep the 软件 up to the current standards, take care of daily and weekly backups, and advise on how to 重定向 WordPress中的一个页面.

Requesting an annual Templateog体育首页 subscription, 页面 owners will get two months for free, 有机会安全地在线支付, 随时取消订阅, and refund the money within two weeks after getting the kit.

A Templateog体育首页 Maintenance subscription guarantees the business owner an assigned manager who will overview the site operating and connect them to the technical department in case of trouble.

Dealing with the task, as the WordPress 页面 重定向, the support team requires access to 举办 管理面板. By the way, t在这里 is no difference in what 举办 is used as the support service collaborates with multiple 举办 供应商.

在开发者时间内, Templateog体育首页 experts will be able to add and change content, 编辑 HTML, modify CSS files, install and configure the existing 插件s.

阅读更多关于 网站 维护服务 在这里.

最酷的Wordpress主题
这个条目被张贴了出来 WordPress教程 和标记 首页, 页面, php, 重定向, WordPress. 书签的 永久链接.

提交罚单

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: 提交罚单