Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/407.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/amazon-s3/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使用php从url中删除id并在url中提交标题_Javascript_Php_Jquery_Html_.htaccess - Fatal编程技术网

Javascript 如何使用php从url中删除id并在url中提交标题

Javascript 如何使用php从url中删除id并在url中提交标题,javascript,php,jquery,html,.htaccess,Javascript,Php,Jquery,Html,.htaccess,我在我们的网站上的职位发布页面工作,我们需要提交每个职位的名称与谷歌索引,而不是id的显示在url。 我需要在URL中看到每个职位,而不是id。 有人能帮我怎么做吗 您可以从下面的链接查看我的网站url 问候 Suresh您必须使用HTACCESS才能完成此操作。例如,如果你想要你的URL像example.com/title.html,它可以通过mod rewrite.htaccess来实现。您可以通过get获取标题作为参数 一个很好的例子: 然后,改为传递“职务头衔”。这是一个比绕过URL字

我在我们的网站上的职位发布页面工作,我们需要提交每个职位的名称与谷歌索引,而不是id的显示在url。 我需要在URL中看到每个职位,而不是id。 有人能帮我怎么做吗

您可以从下面的链接查看我的网站url

问候
Suresh

您必须使用HTACCESS才能完成此操作。例如,如果你想要你的URL像example.com/title.html,它可以通过mod rewrite.htaccess来实现。您可以通过get获取标题作为参数

一个很好的例子:

然后,改为传递“职务头衔”。这是一个比绕过URL字符串更大的问题。为了更好的搜索引擎优化,你应该实施一个URL路由方案,允许你在URL中添加与内容相关的关键字。