Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 09:24

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Converting Apache Htaccess to nginx

Discussion on Converting Apache Htaccess to nginx within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1



 
Venipa's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,145
Received Thanks: 350
Converting Apache Htaccess to nginx

Convert Apache Htaccess to nginx's config
<Directory "download/">
RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</Directory>
Could someone convert it i cant because ill do this wrong :/
Venipa is offline  
Old 07/01/2016, 18:03   #2
 
krosswarrior's Avatar
 
elite*gold: 1278
Join Date: Dec 2011
Posts: 377
Received Thanks: 35
krosswarrior is offline  
Old 07/01/2016, 18:11   #3



 
Venipa's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,145
Received Thanks: 350
Quote:
Originally Posted by krosswarrior View Post
i already visited websites like that but it didnt worked.
Venipa is offline  
Old 07/01/2016, 18:24   #4
 
krosswarrior's Avatar
 
elite*gold: 1278
Join Date: Dec 2011
Posts: 377
Received Thanks: 35
According to you just need
PHP Code:
location / {
    
try_files $uri $uri/ /index.php?$args;

Obviously change the path after location.
krosswarrior is offline  
Old 07/02/2016, 00:35   #5



 
Venipa's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1,145
Received Thanks: 350
Quote:
Originally Posted by krosswarrior View Post
According to you just need
PHP Code:
location / {
    
try_files $uri $uri/ /index.php?$args;

Obviously change the path after location.
well i fixed it somehow
Code:
location /download/ {
    try_files $uri $uri/ /download/index.php?$args;

    }
replaced /index.php?$args;
with /download/index.php?$args;
Venipa is offline  
Reply


Similar Threads Similar Threads
.htaccess und SSL
08/07/2015 - Web Development - 4 Replies
Hallo Elitepvpers, derzeit bin ich auf der Suche nach einer Möglichkeit, die eingehende Domain auf SSL (https) umzuleiten. Insgesamt vier Domains gehören zu meinem Webspace. Deshalb möchte ich ja auch nicht, dass beim Aufruf von Domain C Domain A mit SSL aufgerufen wird, sondern Domain C mit SSL. Sonst würde theoretisch das hier funktionieren:...
s&f + nginx
10/11/2014 - Browsergames - 0 Replies
Hi, I have problem with s&f on nginx www server. Register,login and other don't works, can make s&f runnable on nginx?
Apache, Htaccess..
10/05/2012 - Web Development - 13 Replies
Hallo, habe ein Problem mit einem neuen vserver.. Beim Aufruf einer Seite kommt: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request... Apache Error Log: /var/www/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
.htaccess
10/22/2009 - Main - 0 Replies
hi, hab ne frage undzwar hab ich ne hp über xampp (htdocs) wie kann ich diese mit htaccess passwortsichern? habe es nach den 1000enden tuts im inet gemacht also htaccess und die dateie mit den pws.. hab auch überall ein . davorgemacht aber ich kann immer noch auf die seite gehen ohne ein pw eingeben zu müssen pls helft mir :P lg, m.w



All times are GMT +1. The time now is 09:25.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.