.htaccess到Nginx配置

时间:2015-08-04 05:16:01

标签: php apache .htaccess nginx

我正在尝试安装我从ThemeForest购买的应用程序,但我无法让管理中心工作。

管理文件夹树看起来像这样

^管理员

- > Lib(文件夹)

- >资产(文件夹)

- > Src(文件夹)

- >更多东西等(文件夹)

index.php(文件)

index.php文件调用文件夹中的其他文件,但浏览器只调用http://url/admin/file

这让我相信这是一个url重写问题,但我无法弄清楚如何将此.htaccess文件转换为Nginx

    Options -Indexes

<ifModule mod_rewrite.c>

    Options +FollowSymLinks -MultiViews
    RewriteEngine On

    # Index handles everything
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^?]*)$ index.php?path=$1 [NC,L,QSA]

</IfModule>

<FilesMatch "_connect.php|_somesome.php">
Order Allow,Deny
Deny from all
</FilesMatch>

<Files .htaccess>
Order Allow,Deny
Deny from all
</Files>

0 个答案:

没有答案
相关问题