Jump to content

Nginx FURL


Steph40

Recommended Posts

Posted

Hey all,

I am fairly new to nginx and I am having issues figuring out FURL with nginx. 

I have tried:

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

  location ~^(/page/).*(.php)$ {
    try_files  $uri $uri/ /index.php;
  }

BUt ngix won't restart

Also tried:

# Friendly URL "rewrite" rules
    location / {
        try_files   $uri $uri/ @ips;
    }

No luck

What I am doing wrong. All I want is to not see the index.php? in the url.

 

Steph

Posted

Well I managed to fix it and get it to work with this:

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

But I had to remove this line to get it to work:

	location / {
        try_files $uri $uri/ =404;
        }

Does that make any sense to someone with more nginx experience then me?

Steph

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...