Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.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
Apache .htaccess友好的url。我做错了什么_Apache_.htaccess_Url Rewriting_Friendly Url - Fatal编程技术网

Apache .htaccess友好的url。我做错了什么

Apache .htaccess友好的url。我做错了什么,apache,.htaccess,url-rewriting,friendly-url,Apache,.htaccess,Url Rewriting,Friendly Url,我有以下正在运行的链接: jobdetails.php?url=Human-Resoure-Manager-3-5 我想将其转换为下面的朋友链接,但我不知道我的htaccess有什么问题: /jobdetails/Human-Resoure-Manager-3-5 您没有匹配破折号“-”,请尝试以下操作: Options +FollowSymLinks RewriteEngine On RewriteRule ^jobdetails\/([a-zA-Z0-9-]+)\/$ jobdeta

我有以下正在运行的链接:

jobdetails.php?url=Human-Resoure-Manager-3-5
我想将其转换为下面的朋友链接,但我不知道我的htaccess有什么问题:

/jobdetails/Human-Resoure-Manager-3-5


您没有匹配破折号“-”,请尝试以下操作:

Options +FollowSymLinks

RewriteEngine On
RewriteRule ^jobdetails\/([a-zA-Z0-9-]+)\/$ jobdetails.php?url=$1

经过广泛的搜索后,我发现我漏掉了?在$jobdetails/([a-zA-Z0-9]+)/忘记输入之前?此处$

感谢您的回复。我仍然收到相同的“/jobdetails/Human-Resources-Manager-3-5”未在此服务器上找到。“尝试跳过斜杠吗?我编辑了我的示例以反映。我仍然收到相同的错误。我刚刚给出upregerx.com可能会有所帮助。”
Options +FollowSymLinks

RewriteEngine On
RewriteRule ^jobdetails\/([a-zA-Z0-9-]+)\/$ jobdetails.php?url=$1