最新公告
  • 欢迎您光临三优资源网,本站秉承服务宗旨 履行“站长”责任,销售只是起点 服务永无止境!立即加入我们
  • rageframe2伪静态

    伪静态

    目录

    • Nginx
    • Apache
    • IIS

    Nginx

    推荐配置

    location / {
        try_files $uri $uri/ /index.php$is_args$args;
    }
    location /backend {
        try_files $uri $uri/ /backend/index.php$is_args$args;
    }
    location /api {
        try_files $uri $uri/ /api/index.php$is_args$args;
    }
    location /merchant {
        try_files $uri $uri/ /merchant/index.php$is_args$args;
    }
    location /merapi {
        try_files $uri $uri/ /merapi/index.php$is_args$args;
    }
    location /html5 {
        try_files $uri $uri/ /html5/index.php$is_args$args;
    }
    location /oauth2 {
        try_files $uri $uri/ /oauth2/index.php$is_args$args;
    }
    
    location ~* ^/attachment/.*\.(php|php5)$ 
    {
        deny all;
    }
    

    类似Apache的配置

    location / 
    {
         index  index.html index.htm index.php;
    
         if (!-e $request_filename) {
               rewrite ^/backend(.*)$ /backend/index.php?s=$1 last;
               rewrite ^/merchant(.*)$ /merchant/index.php?s=$1 last;
               rewrite ^/merapi(.*)$ /merapi/index.php?s=$1 last;
               rewrite ^/api(.*)$ /api/index.php?s=$1 last;
               rewrite ^/html5(.*)$ /html5/index.php?s=$1 last;
               rewrite ^/oauth2(.*)$ /oauth2/index.php?s=$1 last;
               rewrite ^/(.*)$ /index.php?s=$1 last;
               break;
         }
             
         #autoindex  on;
    }
    

    Apache

    注意系统默认自带了.htaccess,所以环境如果是apache可以不用再配置

    Options +FollowSymLinks
    IndexIgnore */*
    RewriteEngine on
    
    # if a directory or a file exists, use it directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # otherwise forward it to index.php
    RewriteRule . index.php
    

    IIS

    rule 部分配置

    <rule name="backend" stopProcessing="true">
        <match url="^backend/(.*)" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="backend/index.php/{R:1}" />
    </rule>
    <rule name="merchant" stopProcessing="true">
        <match url="^merchant/(.*)" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="merchant/index.php/{R:1}" />
    </rule>
    <rule name="merapi" stopProcessing="true">
        <match url="^merapi/(.*)" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="merapi/index.php/{R:1}" />
    </rule>
    <rule name="html5" stopProcessing="true">
        <match url="^html5/(.*)" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="html5/index.php/{R:1}" />
    </rule>
    <rule name="api" stopProcessing="true">
        <match url="^api/(.*)" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="api/index.php/{R:1}" />
    </rule>
    <rule name="oauth2" stopProcessing="true">
        <match url="^oauth2/(.*)" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="oauth2/index.php/{R:1}" />
    </rule>
    <rule name="frontend" stopProcessing="true">
        <match url="^(.*)$" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
        </conditions>
        <action type="Rewrite" url="index.php/{R:1}" />
    </rule>
    1. 本站所有资源来源于用户上传和网络,因此不包含技术服务请大家谅解!如有侵权请邮件联系客服!3165260857@qq.com
    2. 本站不保证所提供下载的资源的准确性、安全性和完整性,资源仅供下载学习之用!如有链接无法下载、失效或广告,请联系客服处理,有奖励!
    3. 您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容资源!如用于商业或者非法用途,与本站无关,一切后果请用户自负!
    4. 如果您也有好的资源或教程,您可以投稿发布,成功分享后有站币奖励和额外收入!


    三优资源网 » rageframe2伪静态

    常见问题FAQ

    免费下载或者VIP会员专享资源能否直接商用?
    本站所有资源版权均属于原作者所有,这里所提供资源均只能用于参考学习用,请勿直接商用。若由于商用引起版权纠纷,一切责任均由使用者承担。更多说明请参考 VIP介绍。
    提示下载完但解压或打开不了?
    最常见的情况是下载不完整: 可对比下载完压缩包的与网盘上的容量,若小于网盘提示的容量则是这个原因。这是浏览器下载的bug,建议用百度网盘软件或迅雷下载。若排除这种情况,可在对应资源底部留言,或 联络我们.。
    找不到素材资源介绍文章里的示例图片?
    对于PPT,KEY,Mockups,APP,网页模版等类型的素材,文章内用于介绍的图片通常并不包含在对应可供下载素材包内。这些相关商业图片需另外购买,且本站不负责(也没有办法)找到出处。 同样地一些字体文件也是这种情况,但部分素材会在素材包内有一份字体下载链接清单。
    三优资源网
    一个高级程序员模板开发平台

    发表评论

    • 232会员总数(位)
    • 1266资源总数(个)
    • 0本周发布(个)
    • 0 今日发布(个)
    • 1479稳定运行(天)

    提供最优质的资源集合

    立即查看 了解详情