FIX a .htaccess CONVERTION TO nginx

Completed Posted 3 years ago Paid on delivery
Completed Paid on delivery

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 "*"

</IfModule>

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]

------

HERE MY NGINX

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;

}

}

Apache Cloud DevOps Nginx PHP

Project ID: #27497793

About the project

4 proposals Remote project Active 3 years ago

Awarded to:

Haider10111993

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)
5.0

4 freelancers are bidding on average $30 for this job

freekamlesh

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)
4.4
udayarpandey2022

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)
3.3
worldbestcon

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)
1.9