我有一些麻烦,了解如何动态组合简单的一个语言网站.如果有人能用婴儿语言向我解释下面代码的每个部分是什么意思,我真的很感激:
RewriteEngine On
RewriteCond %{REQUEST_URI} !\.(php|css|js|gif|png|jpe?g|pdf)$
RewriteRule (.*)$ templates/index.php [L]
Run Code Online (Sandbox Code Playgroud)
先感谢您!
# Enable RewriteEngine to rewrite URL patterns
RewriteEngine On
# Every URI that not (! operator) ends with one of .php, .css, .js, .gif, .png, .jpg, .jpeg or .pdf
RewriteCond %{REQUEST_URI} !\.(php|css|js|gif|png|jpe?g|pdf)$
# Will be redirected to templates/index.php
RewriteRule (.*)$ templates/index.php [L]
# Sample
# /foo/bar.php -> /foo/bar.php
# /foo/bar.html -> templates/index.php
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
1581 次 |
最近记录: |