FIX a .htaccess CONVERTION TO nginx

Here the htaccess code.

Using some auto convert plataforms (online) the web site give some redirections.

RewriteEngine On

Options -Indexes

<IfModule mod_headers.c>

Header set Access-Control-Allow-Origin "*"


RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} (.+)/$

RewriteRule ^ %1 [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}\.php -f

RewriteRule ^(.*)$ $[login to view URL]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]

RewriteRule ^ %1 [R,L]

RewriteRule ^([0-9a-zA-Z-_-]+)$ [login to view URL]$1

RewriteCond %{HTTP_HOST} !=localhost

RewriteCond %{HTTP_HOST} !^www\.

RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#Now, rewrite to HTTPS if www present:

RewriteCond %{HTTPS} off

RewriteCond %{HTTP_HOST} !=localhost

RewriteCond %{HTTP_HOST} ^www\.

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]



location ~* \.(?:css|js|map|jpe?g|gif|png)$ { }

location / {

index [login to view URL];

try_files $uri/ /$[login to view URL]$is_args$args =404;

if (!-e $request_filename){

rewrite ^(.*)$ /[login to view URL]$1 break;



Skills: Apache, Cloud, DevOps, Nginx, PHP

See more: nginx rewrite rule generator, rewrite enable nginx, how to enable htaccess in nginx, nginx rewrite rules, nginx rewrite proxy_pass, nginx htaccess equivalent, htaccess to nginx converter online, nginx htaccess wordpress, a href http translation babylon com please click here to receive your translation a, all it if you have a website link to it here post a new comment, how much to charge for illustrating a children's book, how to get illustrations for a children's book, how to get started writing a children's story, how to write and illustrate a children's book, i want to write and illustrate a children's book, professional woocommerce developers if you have a website link to it here post a new comment, questions to ask before hiring a children's book illustrator, convert .htaccess rewrite to nginx, failed to start the nginx http and reverse proxy server., what to say when making a doctor's appointment

About the Employer:
( 0 reviews ) Vilhena, Brazil

Project ID: #27497793

Awarded to:


HI! Here is nginx code for the given .htaccess || you can try and contact with me! # nginx configuration by [login to view URL] autoindex off; autoindex off; location / { if (!-e $request_filename){ rewrite ^(.*)$ / More

$20 USD in 1 day
(30 Reviews)

4 freelancers are bidding on average $30 for this job


I am a Linux admin have 8 years of experience in this field. I worked in webhosting industry and manage datacenter from remote. I give full server management support and I can do this for you . I also have experience w More

$50 USD in 1 day
(22 Reviews)

I have rich skills with nginx. I can help you with the issue. Please let me know if you are interested for my service. I assure you a quality work with long term support. Thanks

$30 USD in 7 days
(2 Reviews)

Hello, i can start work on it immediately. i'm very much confident to reach your expectation and give you 100% satisfaction and quality work. hope you will give me this opportunity to serve you best Thanks & regards

$20 USD in 1 day
(6 Reviews)