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

更改永久链接htaccess(不是wordpress)

I want Before any URL's, added a keyword

For example:

my URL:

test.com/news/Selena-Gomez

test.com/news/Jackson

now my keyword is: Biography

And the result is:

test.com/news/Biography-Selena-Gomez

test.com/news/Biography-Jackson

How to 1,000 pages added keyword?

my htaccess :

Options +FollowSymLinks

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

近期文章

  • Javascript RegEx命名组和组合
  • html href链接显示而不是标题php
  • 重构从foreach到Laravel Collections的代码
  • 如何从仍在PHP中运行的进程获取部分输出?
  • 使用一个php文件将关系(PK,FK“user_id”)的两个表中的数据插入
  • 在输入字段定制器wordpress中获取href
  • 如何在网站上分享Whatsapp上的图片?
  • 需要澄清:Yii2,MySQL程序和临时表
  • PHP 7 Imagick writeimage()路径问题
  • PHP - 检查用户名是否存在或提交的用户名是否为当前
  • 将php变量保存为sql的null
  • 在自己的网络和移动应用中发布广告
  • Shopify API获取PHP的最后一个订单
  • 如何从数组中获取数值?
  • 防止Ajax Chat加载到页面顶部
  • 在Symfony 3中禁止弃用警告
  • 为WooCommerce注册表添加功能
  • Paypal在沙箱上运行良好,但在现场不运行
  • 获取json数据并传递给PHP字符串(Here Maps api)
  • 307在Chrome中加载页面时暂时移动代码

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

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

友情链接:代码精华