markdown 的.htaccess
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 的.htaccess相关的知识,希望对你有一定的参考价值。
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Options -Indexes
RedirectMatch 301 ^/wp-content/uploads/(.*) {url}/wp-content/uploads/$1
# Non WordPress
RewriteEngine On
# example.com/page will display the contents of example.com/page.html or example.com/page.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ $1.php [L,QSA]
```
<IfModule mod_headers.c>
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Wed, 11 Jan 1984 05:00:00 GMT"
</IfModule>
FileETag None
```
以上是关于markdown 的.htaccess的主要内容,如果未能解决你的问题,请参考以下文章
markdown HTACCESS - 但不适用于localhost
markdown .HTACCESS FIXENS
markdown .htaccess fixens
markdown 压缩和更改到期时间#htaccess #performance
markdown 强制HTTPS #htaccess #https #security
markdown [www和https重定向]将所有文件重定向到https url和www域名#www #htaccess