htaccess URL重写 - 根到子文件夹(具有相同名称的文件夹)(htaccess URL Rewrite - Root to Subfolder (with folder of the same name))
我在www.domain.com/blog/blog.html上有一个文件,我想重写为www.domain.com/blog。
我已经找到了重写删除扩展名.html但是我遇到了循环问题,或者在尝试执行上述操作时最终将博客重写指向博客文件夹。
我是新手重写语法,所以非常感谢帮助!
I have a file at www.domain.com/blog/blog.html that I want to rewrite as www.domain.com/blog.
I have figured out the rewrite for removing the extension .html but am having either circular issues or end up pointing the blog rewrite to the blog folder when trying to do the above.
I am new to rewrite syntax, so help would be much appreciated!
原文:https://stackoverflow.com/questions/30743414
最满意答案
Web服务器是名为WebDev.WebServer.EXE的可执行文件,位于\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727中。 在调试网站时,Visual Studio使用以下参数启动应用程序的实例。
WebDev.WebServer.exe \ port \ path [\ vpath]
此ASP.NET开发服务器仅使用调试文件夹中的已编译Web应用程序(以/ path形式提供)来为网站提供服务。
你可以在这里阅读更多。
The web server is an executable file named WebDev.WebServer.EXE and located in \WINDOWS\Microsoft.NET\Framework\v2.0.50727. When debugging the web site, Visual Studio starts up an instance of the application with the following parameters.
WebDev.WebServer.exe \port \path [\vpath]
This ASP.NET Development Server simply uses the compiled web application in the debug folder, which is provided as /path, to serve the website.
You can read more about this here.
相关问答
更多-
你不能在cassini中使用net.tcp,所以你可以做任何改变来让它工作。 你必须在你的机器上使用IIS。 http://tomasz.janczuk.org/2009/11/pubsub-sample-with-wcf-nettcp-protocol.html http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/6828959c-43c1-4452-8070-01f14df1c1d2 要在IIS7中调试它,您可以附加到Visual Studi ...
-
也许您必须在Visual Studio Tools命令提示符下执行以下操作: aspnet_regiis -i 您可以在这里阅读有关ASP.NET IIS注册工具(Aspnet_regiis.exe)的更多 信息 。 Maybe you have to execute the following in the Visual Studio Tools command prompt: aspnet_regiis -i You can read more about the ASP.NET IIS Regis ...
-
这就是你要找的东西: http://www.hanselman.com/blog/HowToSetAnIISApplicationOrAppPoolToUseASPNET35RatherThan20.aspx This is what you're looking for: http://www.hanselman.com/blog/HowToSetAnIISApplicationOrAppPoolToUseASPNET35RatherThan20.aspx
-
您是否在解决方案中设置了使用Development Server的其他项目? 如果任何项目具有该设置,则Visual Studio将启动开发服务器,以防您调试该项目。 Do you have other projects in the solution that are set to use the Development Server? If any of the projects have the setting, Visual Studio will start the Development Ser ...
-
ASP.NET Web开发服务器(ASP.NET Web Development Server)[2023-01-28]
Web服务器是名为WebDev.WebServer.EXE的可执行文件,位于\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727中。 在调试网站时,Visual Studio使用以下参数启动应用程序的实例。 WebDev.WebServer.exe \ port \ path [\ vpath] 此ASP.NET开发服务器仅使用调试文件夹中的已编译Web应用程序(以/ path形式提供)来为网站提供服务。 你可以在这里阅读更多。 The web server ... -
我自己想出了这个。 这里的问题不是HOSTS文件不起作用,而是我使用错误的方法从浏览器中检测主机头。 这不起作用,只重复ASP开发服务器所在的127.0.0.1 localhost。 Request.Url.Host; 但是,通过使用以下内容,可以存储输入浏览器的域,并可用于动态更改站点行为,即使在ASP开发服务器上也是如此。 HttpContext.Current.Request.Headers.Get("Host").ToString(); 因此,在Dev服务器上测试多个域的解决方案是: 在 ...
-
首先,确保将WebService设置为Dynamic。 然后我建议你把URI放在你的web.config文件中,如下所示:
-
通过在IIS 6或7上运行,您不会从ASP获得任何额外的东西。您是否遇到了陷入IIS 5.1的任何特定问题? The short answer is No, there is no small web server that runs classic ASP. There are many alternatives, as mentioned here, such as IIS or Apache plug-ins, but none that has a similar small footprint l ...
-
对于Web开发新手,ASP.NET或Ruby on Rails?(ASP.NET or Ruby on Rails for someone new to web development?)[2023-04-15]
如果你想坚持使用c ++,请尝试wt: http : //www.webtoolkit.eu/wt 。 从我有限的经验来看,php和基于它构建的某些 框架是最容易进入的。 Web2py是一个不错的便携式python框架(我被告知代码可以在google appengine中运行而无需修改),您也可以查看。 但它归结为个人的优先权。 试试你能找到的所有鞋子,选择最适合你的鞋子。 If you would like to stick with with c++, try wt: http://www.webtoo ... -
谢谢你的帮助。 这实际上是我的错。 我实际上前一天禁用了目录监控,因为它不允许我构建网站。 我刚刚在一些论坛上找到了解决方案。 我当时不知道那是什么东西,我很高兴它有效。 这是链接: http : //support.microsoft.com/kb/911272 我为'HKLM \ Software \ Microsoft \ ASP.NET \ FCNMode'注册表项将值设置为2。 如果我将它设置为0然后项目进入无限构建,可能是因为机器速度慢。 值2对我有用。 Thanks for the help ...