mow / apache2nginx Goto Github PK
View Code? Open in Web Editor NEWConverts apache rewrite rules to nginx rewrite rules
Converts apache rewrite rules to nginx rewrite rules
Add the licence to your readme ;)
i try to convert this:
RewriteRule ^/regions-viticoles/([a-zA-Z0-9,-]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /oeno-regions.php?scenario=$2&intertitre=$3®ion=$4 [NC,L]
result is:
rewrite ^/regions-viticoles/([a-zA-Z0-9,-]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ /oeno-regions.php?scenario=$2&intertitre=$3®ion=$4 last;
Could you upload the html from the website?
http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
Also, the php code in the website is outdated, for example, the problem on this issue #2 is still happening on the website
Thanks! 💃
Hello,
First of all, thanks for this simple and great tool !
I think I have an issue.
RewriteRule ^rule([0-9]{1,3})$ rule.php?id=$1
is converted into
rewrite ^/rule([0-9]{1,3})$ /rule.php?id=$1;
But it doesn't work.
It should output rewrite "^/rule([0-9]{1,3})$ /rule.php?id=$1;"
to be compatible.
Is it possible to create a fix for this ?
Hello
Thanks For Your Script
I Get below error in right text box when i copy/paste my htaccess code in left text box.
<br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/domain/domains/domain.com/public_html/services/apache2nginx-master/rew.phps</b> on line <b>529</b><br /> <br /> <b>Warning</b>: Invalid argument supplied for foreach() in <b>/home/domain/domains/domain.com/public_html/services/apache2nginx-master/rew.phps</b> on line <b>399</b><br />
can you help me ?
Hi!
As website is down, and I had make some UI improvments in the past (see #7 ), here is somewhere you can use this awesome tool: https://apache2nginx.ownweb.fr/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.