2

I have this htaccess:

<IfModule mod_rewrite.c> RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php?%{QUERY_STRING} [L] </IfModule> 

to convert to nginx rules.

The problem is the last line.

Here is my current one :

 set $condition ""; if (!-f $request_filename) { set $condition F; } if (!-d $request_filename) { set $condition "${condition}D"; } if ($condition = FD) { rewrite ^(.*) $host/index.php?$query_string last; } 

How can I make this work ?

Thank you.

2 Answers 2

1

Just erased $host and kept / and it's ok.

1

try this:

location / { try_files $uri $uri/ /index.php?$args; } 

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.