如何隐藏我当前的URL并在PHP中显示seo友好的URL [英] How to hide my current url and show the seo friendly url in PHP

查看:68
本文介绍了如何隐藏我当前的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]


这篇关于如何隐藏我当前的URL并在PHP中显示seo友好的URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆