Update:更新了一些小脚本
This commit is contained in:
19
PHP/jsd加速/README.md
Normal file
19
PHP/jsd加速/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# 伪静态需求
|
||||
|
||||
```Apache
|
||||
RewriteEngine on
|
||||
RewriteBase /
|
||||
RewriteCond $1 ^(index\.php)?$ [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -f [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} -d [OR]
|
||||
RewriteCond %{REQUEST_FILENAME} ^index\.php?$
|
||||
RewriteRule ^(.*)$ - [S=1]
|
||||
RewriteRule . /index.php [L]
|
||||
|
||||
```
|
||||
|
||||
```nginx
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user