Php htaccess中的标题重定向用于重定向url或类似内容 我想重定向这个,请引导我

Php htaccess中的标题重定向用于重定向url或类似内容 我想重定向这个,请引导我,php,codeigniter,Php,Codeigniter,形式 到 id应动态变化,即id可能为b 10、12或23等 大宗报价 在.htaccess:上尝试使用 RewriteRule ^babycare/article/category/([0-9]+)$ babycare/general_help/category.php?id=$1 在.htaccess:上尝试使用 RewriteRule ^babycare/article/category/([0-9]+)$ babycare/general_help/category.php?id=

形式

id应动态变化,即id可能为b 10、12或23等

大宗报价


在.htaccess:上尝试使用

RewriteRule ^babycare/article/category/([0-9]+)$ babycare/general_help/category.php?id=$1

在.htaccess:上尝试使用

RewriteRule ^babycare/article/category/([0-9]+)$ babycare/general_help/category.php?id=$1

试试这个,你需要根据你的类别改变它的某些部分

  RewriteEngine On
RewriteRule ^category/(.+)/(.+)$ category.php?$1=$2 [NC,L]

试试这个,你需要根据你的类别改变它的某些部分

  RewriteEngine On
RewriteRule ^category/(.+)/(.+)$ category.php?$1=$2 [NC,L]