美文网首页
.htaccess 301跳转

.htaccess 301跳转

作者: 悠远晴空 | 来源:发表于2016-12-06 10:27 被阅读0次
    php_value post_max_size 1024m
    php_value upload_max_filesize 1024m
    php_value max_execution_time 120
    php_value max_input_time 240
    <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
    </IfModule>
    
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^ahmest.com [NC]
    RewriteRule ^(.*)$ http://www.ahmest.com/$1 [L,R=301]
    

    强制301到https

    # Force SSL
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    

    相关文章

      网友评论

          本文标题:.htaccess 301跳转

          本文链接:https://www.haomeiwen.com/subject/ggzlmttx.html