如何隐藏我当前的URL并在PHP中显示seo友好的URL
问题描述:
以下是我目前的网址
localhost / doctor / index.php?page = clinicbylocation& treatment = Fue + hair + transplat& city = Delhi
我想要的是
localhost / doctor / Delhi / Fue Hair Transplant
我尝试了什么:
Below is my current url
localhost/doctor/index.php?page=clinicbylocation&treatment=Fue+hair+transplat&city=Delhi
And I want is
localhost/doctor/Delhi/Fue Hair Transplant
What I have tried:
RewriteRule ^/Delhi/Fue-Hair-Transplant index.php?page=doctorprofile&clinic_name=Ad%2099%20India&city=Delhi
答
您使用的是框架还是类似wordpress的东西?通常在'SEO'下有一个设置。
如果你想手写这个,你肯定想要使用框架选项。
这是一篇手写的文章: [ seo-friendly-urls ]
Are you using a framework or something like wordpress? Normally there is a setting under 'SEO'.
If you want to write this by hand you definitely want to use the framework options.
Here is a article to write this by hand: [seo-friendly-urls]