zoukankan      html  css  js  c++  java
  • [moka同学笔记]window下.htacess文件 与linux下.htacess文件

    windows下

    # Turn on URL rewriting
    RewriteEngine On

    # Installation directory
    RewriteBase /

    # Protect hidden files from being viewed
    <Files .*>
        Order Deny,Allow
        Deny From All
    </Files>

    # Protect application and system files from being viewed
    RewriteRule ^(?:application|modules|system).* index.php/$0 [L]

    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # Rewrite all other URLs to index.php/URL
    #linux
    #RewriteRule .* index.php/$0 [PT]
    #wodows
    RewriteRule ^(.*)$ /index.php?/$1 [L]

    linux下

    # Turn on URL rewriting
    RewriteEngine On
    
    # Installation directory
    RewriteBase /
    
    # Protect hidden files from being viewed
    <Files .*>
            Order Deny,Allow
            Deny From All
    </Files>
    
    # Protect application and system files from being viewed
    #RewriteRule ^(?:application|modules|system).* index.php/$0 [L]
    
    # Allow any files or directories that exist to be displayed directly
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    
    # Rewrite all other URLs to index.php/URL
    RewriteRule .* index.php/$0 [PT]
    我生活的地方,我为何要生活。
  • 相关阅读:
    要离职了。
    上海找工作经历
    1.6. 三基色LED
    1.5. 板载LED PWM模式
    1.4. 板载LED控制
    1.3. 硬件篇之IO口(视频连接)
    1.2 Hello World
    1.8. 数码管
    ESP32编译自己的micropython固件
    1.1 准备工作
  • 原文地址:https://www.cnblogs.com/hsd1727728211/p/6024016.html
Copyright © 2011-2022 走看看