我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在php文件中手动添加wordpress slug?

When i search for a specific page on the web for my website it shows the index file on all the searches e.g. www.website.com/ whereas it should show www.website.com/pageone.php

On wordpress this is called a slug, how can i replicated this similar to how you do the description in meta tags?

I suggest looking into mod_rewrite, which allows you to map arbitrary URLs to your internal PHP URL structure (e.g. example.com/about to index.php?page=about).

It's the same technique as used by wordpress.

近期文章

  • 当我点击短信中的链接使用PHP发送短信到另一个号码?
  • 我想要使​​用file_get_contents()时超时
  • 使用osticket api_create_ticket.php创建故障单时出错
  • 用新函数替换许多php文件中的弃用函数
  • 如何使用自定义模块启用集合的商店视图选项
  • 如何修复Jquery轮询继续无限?
  • 这个错误会是什么?
  • 不要求Jquery帖子
  • 如何返回jquery中的函数
  • 截断magento文本
  • 使用UWP应用程序中的Php脚本从MySql服务器获取数据
  • 获取Zend Framework中htdocs文件夹的本地路径
  • 无法在MySQL PDO数据库上写[重复]
  • 在div中读取图像并使用php和jquery发送邮件
  • CakePHP3错误解析数据库结果集
  • PHP:购物车计算失灵
  • 在变量中使用where
  • too long
  • WordPress函数中的HTTP希望避免https重定向
  • 如何从用户目录的根目录开始获取FTP路径?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华