Welcome! Log In Create A New Profile

Advanced

Complex DirecotoryIndex from htacces into Nginx

Posted by ahbruinsma 
Complex DirecotoryIndex from htacces into Nginx
May 14, 2012 05:53AM
Hello,

I've got the following DirectoryIndex:

DirectoryIndex main.php?page=pages/index&action=home

I would like to implement this into the Nginx configuration, you when you go the domain: http://www.mysite.com/ it actually loads the main.php?page=pages/index&action=home

I've tried after reading somewhere:

location ~ ^main.php\?page=index\&action=home {
autoindex on;
}

Anybody got the correct syntax for this? My other rewrite rules are working perfectly.

Thanks and cheers
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 263
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready