Openlitespeed /litespeed 常用的伪静态(rewrite)规则大全
Openlitespeed /litespeed 常用的伪静态(rewrite)规则大全
默认WordPress规则:
1
2
3
4
5
6
7
8
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^/index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
重定向到HTTPS:
1
2
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.your-domain.com/$1 [R,L]
将www重定向到HTTPS:
1
2
RewriteCond %{HTTP_HOST} ^www\.your-domain\.com
RewriteRule (.*) https://your-domain.com/$1 [R=301,L]
Drupal 8:
1
2
3
4
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^/ index.php [L]
Laravel:
1
2
3
RewriteRule . /laravel/public/index.php [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
💘 相关文章
- Openlitespeed /litespeed deny methods to access folders and files
- Openlitespeed /litespeed 配置文件参考收藏
- Openlitespeed wordpress伪静态出现404错误解决方法
- openlitespeed/litespeed禁止访问文件夹和文件的方法
- mediawiki 在网站根目录下的apache/openlitespeed伪静态规则
- Openlitespeed /litespeed 添加HSTS的方法
- vanillaforums伪静态规则和memcached缓存的方法
- LiteSpeed 旗下特色的免费CDN加速服务QUIC.cloud
- DirectAdmin更改Apache或openlitespeed服务器为nginx
- 分享一下常用的公共dns服务器地址大全