[英].htaccess seo friendly url not found issue
I am trying to create SEO Friendly URL using htaccess php. 我正在尝试使用htaccess php创建SEO友好URL。
Here is the original URL : 这是原始网址:
http://www.example.in/viewitem.php?typedp=bus&viewdp=bus-seat-test-item http://www.example.in/viewitem.php?typedp=bus&viewdp=bus-seat-test-item
expected SEO Friendly URL : 预期的SEO友好网址:
http://www.example.in/bus/bus-seat-test-item http://www.example.in/bus/bus-seat-test-item
Using the following rule in .htaccess 在.htaccess中使用以下规则
Options +FollowSymLinks
RewriteEngine on
RewriteRule typedp/(.*)/viewdp/(.*)/ viewitem.php?typedp=$1&viewdp=$2
But it shows as not found 404 error. 但是它显示为未找到404错误。
I am new to this concept. 我是这个概念的新手。
any help appreciated. 任何帮助表示赞赏。
try this one : 试试这个:
RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)$ /viewitem.php?typedp=$1&viewdp=$2 [QSA, L]
take a look at : Mod Rewrite Generator 看一下: Mod Rewrite Generator
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.