[英]What does this mod rewrite do in htaccess file?
我有一些ht代碼,我只想
知道這段代碼到底能做什么?
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_URI} !public
RewriteCond %{REQUEST_URI} !robots.txt
RewriteRule . /index.php [L]
</IfModule>
www
從您的網址中刪除 /index.php
重寫 /public
和/robots.txt
以外的所有URI重寫為/index.php
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.