从.htaccess转换为web.config

时间:2022-07-30 11:27:05

I need help converting this .htaccess code to a web.config file. I've tried some of the online converters but they arent working. Is there a way to use a .htaccess on a Windows Azure server? - or if not, can someone help translate the code to web.config

我需要帮助将此.htaccess代码转换为web.config文件。我尝试了一些在线转换器,但他们没有工作。有没有办法在Windows Azure服务器上使用.htaccess? - 如果没有,有人可以帮助将代码转换为web.config

Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?url=$1 [PT,L]

</IfModule>

1 个解决方案

#1


.htaccess file is not recognizible by Azure Web Sites. Azure Web Sites run on Microsoft IIS.

Azure网站无法识别.htaccess文件。 Azure网站在Microsoft IIS上运行。

Trying taking a look at http://blog.syntaxc4.net/post/2012/07/19/getting-started-with-php-on-windows-azure-web-sites.aspx which will help you convert it properly.

试着看看http://blog.syntaxc4.net/post/2012/07/19/getting-started-with-php-on-windows-azure-web-sites.aspx这将有助于你正确地转换它。

#1


.htaccess file is not recognizible by Azure Web Sites. Azure Web Sites run on Microsoft IIS.

Azure网站无法识别.htaccess文件。 Azure网站在Microsoft IIS上运行。

Trying taking a look at http://blog.syntaxc4.net/post/2012/07/19/getting-started-with-php-on-windows-azure-web-sites.aspx which will help you convert it properly.

试着看看http://blog.syntaxc4.net/post/2012/07/19/getting-started-with-php-on-windows-azure-web-sites.aspx这将有助于你正确地转换它。