FIX a .htaccess CONVERTION TO nginx
$20 USD
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;
}
}
Project ID: #27497793
About the project
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
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
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
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