Free.Fr法国老牌免费空间升级PHP8

升级详情:

数据库引擎升级:正式迎来 MariaDB 11.8
https://assistance.free.fr/articles/629

PHP 运行环境:跳过 PHP 7,直接推进 PHP 8 / 8.5
https://assistance.free.fr/articles/648

全面支持 SSL / HTTPS 证书

https://jc-etiemble.pages-perso. ... es/pagesperso-https


WP伪静态规则:

# 启用 PHP8.5(Free.fr 虚拟主机)
<ifDefine Free>
    PHP85 1
    ErrorDocument 400 /index.php
    ErrorDocument 401 /index.php
    ErrorDocument 403 /index.php
    ErrorDocument 404 /index.php
    ErrorDocument 405 /index.php
    ErrorDocument 500 /index.php
    ErrorDocument 501 /index.php
    ErrorDocument 502 /index.php
    ErrorDocument 503 /index.php
</ifDefine>

# 保护 .htaccess 文件
<Files .htaccess>
    Order Allow,Deny
    Deny from all
</Files>

# 禁用目录列表显示
Options All -Indexes

# 仅在非 Free.fr 虚拟主机上激活重写规则(伪静态)
<IfDefine !Free>
    Options +FollowSymlinks -Indexes
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
        RewriteBase /
        RewriteRule ^index\.php$ - [L]
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteRule . index.php [L]
    </IfModule>
</IfDefine>

发表评论 / Comment

用心评论~