.htaccess 301跳转

php_value post_max_size 1024m
php_value upload_max_filesize 1024m
php_value max_execution_time 120
php_value max_input_time 240

 RewriteEngine on
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]


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跳转)