Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/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

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/solr/3.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
DotNetNuke中的友好URL-疑难解答_Url_Module_Dotnetnuke_Friendly Url_Seo - Fatal编程技术网

DotNetNuke中的友好URL-疑难解答

DotNetNuke中的友好URL-疑难解答,url,module,dotnetnuke,friendly-url,seo,Url,Module,Dotnetnuke,Friendly Url,Seo,在DNN中,我使用主机设置->友好Url设置来尝试使页面Url SEO友好。但是我不断地犯错误,我不知道为什么 当前URL格式: http://localhost/dnn/Admin/MyPage.aspx?title=news-article-name-written-here http://localhost/dnn/Admin/MyPage/news-article-name-written-here 所需的URL格式: http://localhost/dnn/Admin/MyPag

在DNN中,我使用主机设置->友好Url设置来尝试使页面Url SEO友好。但是我不断地犯错误,我不知道为什么

当前URL格式:

http://localhost/dnn/Admin/MyPage.aspx?title=news-article-name-written-here
http://localhost/dnn/Admin/MyPage/news-article-name-written-here
所需的URL格式:

http://localhost/dnn/Admin/MyPage.aspx?title=news-article-name-written-here
http://localhost/dnn/Admin/MyPage/news-article-name-written-here
“友好Url设置”规则:

错误:

应用程序“默认网站/DNN”中的服务器错误

Internet信息服务7.5错误摘要HTTP错误404.0-非 发现

您正在查找的资源已被删除,其名称为 已更改,或暂时不可用

顺便说一句,我对购买任何专门的DNN模块(或使用免费的iFinity模块)不感兴趣。你知道我做错了什么吗?或者,如果出于某种原因这是不可能的,有人能解释一下原因吗


非常感谢

好了,解决了这个问题-事实证明,使用默认的DNN Url重写器无法删除文件扩展名。以下是我所做的:

  • 在我的IIS上安装了urlrewrite扩展 (http://www.iis.net/download/urlrewrite)
  • 将以下代码段添加到dnn站点的web.config的
    标记中:
  • 希望这能帮助别人