nginx specialist
$30-250 USD
$30-250 USD
Paid on delivery
hi i need a nginx specialist who can convert .htaccess to nginx conf file
apache .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule \.htaccess - [F]
RewriteRule (.*)(style\.css)$ $2 [L]
RewriteRule (.*)(lightbox\.css)$ $2 [L]
RewriteRule (.*)(userdata\/)(.*)$ $2$3 [QSA,L]
RewriteRule (.*)(maps\/)(.*)$ $2$3 [QSA,L]
RewriteRule (.*)(test\/)(.*)$ $2$3 [QSA,L]
RewriteRule ^(.*)(index\.php)(\/?)(.*)$ [login to view URL]$4 [QSA,L]
RewriteRule (.*)(install\/)(.*)$ $2$3 [QSA,L]
RewriteRule (.*)(addon\/)(.*)$ $2$3 [QSA,L]
RewriteRule (.*)(cron\/)(.*)$ $2$3 [QSA,L]
RewriteRule (.*)(js\/)(.*)(\.js)$ $2$3$4 [L]
RewriteRule (.*)(images\/)(.*)(\.)(gif|jpe?g|png|ico)$ $2$3$4$5 [L]
RewriteCond %{request_uri} !^index\.php
RewriteRule ^(.*)$ [login to view URL]$1 [QSA,L]
</IfModule>
it try this but no luck some of command couldnt converted
myconf file is
server {
listen 81;
server_name *.[login to view URL];
access_log /var/log/[login to view URL] main;
error_log /var/log/[login to view URL];
root /home/mysite/www;
index [login to view URL] [login to view URL];
rewrite /(.*)(style\.css)$ /$2 last;
rewrite /(.*)(lightbox\.css)$ /$2 last;
rewrite /(.*)(userdata\/)(.*)$ /$2$3 last;
rewrite /(.*)(maps\/)(.*)$ /$2$3 last;
rewrite /(.*)(test\/)(.*)$ /$2$3 last;
rewrite ^/(.*)(index\.php)(\/?)(.*)$ /[login to view URL]$4 last;
rewrite /(.*)(install\/)(.*)$ /$2$3 last;
rewrite /(.*)(addon\/)(.*)$ /$2$3 last;
rewrite /(.*)(cron\/)(.*)$ /$2$3 last;
rewrite /(.*)(js\/)(.*)(\.js)$ /$2$3$4 last;
rewrite /(.*)(images\/)(.*)(\.)(gif|jpe?g|png|ico)$ /$2$3$4$5 last;
rewrite ^/(.*)$ /[login to view URL]$1 last;
location / {
try_files $uri $uri/ /[login to view URL]$request_uri;
}
location ~ \.php$ {
root html;
fastcgi_pass [login to view URL];
fastcgi_index [login to view URL];
fastcgi_param SCRIPT_FILENAME /home/mysite/www$fastcgi_script_name;
include fastcgi_params;
}
}
Project ID: 934418
About the project
1 proposal
Remote project
Active 13 yrs ago
Looking to make some money?
Benefits of bidding on Freelancer
Set your budget and timeframe
It's free to sign up and bid on jobs