要与Nginx的使用变化的Apache .htaccess文件 [英] Change Apache .htaccess file to be used with Nginx

查看:182
本文介绍了要与Nginx的使用变化的Apache .htaccess文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从迁移具有的Apache Web服务器到运行Nginx的网络服务器其他服务器服务器的网站,我想转换.htaccess文件,这个问题不仅仅是语法,而且文件名字,也的htaccess 或什么?

I'm migrating a website from a server that has Apache web-server to another server that is running Nginx web-server, and I wanted to convert the .htaccess files, the problem is not just the syntax but also the file name, is it also ".htaccess" or what?

推荐答案

下面是我用的工具:

<一个href="http://www.anilcetin.com/convert-apache-htaccess-to-nginx/">http://www.anilcetin.com/convert-apache-htaccess-to-nginx/

这是不是100%准确,但它是pretty的良好基地。

It is not 100% accurate but it's pretty good base

另外,这里是关于转换规则的链接:

Also, here's a link about converting the rules:

<一个href="http://nginx.org/en/docs/http/converting_rewrite_rules.html">http://nginx.org/en/docs/http/converting_rewrite_rules.html

这人能有点帮助:

<一个href="http://wiki.nginx.org/Htt$p$pwriteModule#rewrite">http://wiki.nginx.org/Htt$p$pwriteModule#rewrite

这篇关于要与Nginx的使用变化的Apache .htaccess文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆