【发布时间】:2017-04-26 09:03:43
【问题描述】:
我正在尝试使用 htaccess php 创建 SEO 友好的 URL。
这是原始网址:
http://www.example.in/viewitem.php?typedp=bus&viewdp=bus-seat-test-item
预期的 SEO 友好 URL:
http://www.example.in/bus/bus-seat-test-item
在 .htaccess 中使用以下规则
Options +FollowSymLinks
RewriteEngine on
RewriteRule typedp/(.*)/viewdp/(.*)/ viewitem.php?typedp=$1&viewdp=$2
但它显示为未找到 404 错误。
我是这个概念的新手。
任何帮助表示赞赏。
【问题讨论】:
标签: apache .htaccess mod-rewrite seo