简体   繁体   English

网址中的.htaccess网址标题(不是ID)

[英].htaccess URLs title in url not by id

I am trying tyo change my url address by title, doing change by id its work and show all the content but when trying by title its not show content the .htaccess code is 我正在尝试按标题更改我的网址,通过id更改其工作并显示所有内容,但是按标题尝试不显示内容时,.htaccess代码为

RewriteRule ^blogview/([-a-zA-Z]+) single1.php?title=$1 [L,QSA]

and the page code is 页面代码是

<a class="bttn" href="/blogview/<?php echo $row['title']; ?>">MORE</a>

the link of url is Page link url的链接是Page链接

更改规则,如下所示:

RewriteRule ^blogview/([A-Za-z\-]*)$ single1.php?title=$1 [L,QSA]

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM