.htaccess 什么是¦;htaccess中的符号和内容';是吗

.htaccess 什么是¦;htaccess中的符号和内容';是吗,.htaccess,.htaccess,符号在htaccess中的作用是什么。我从htaccess的一个在线论坛上获取了一个代码,他们使用了。如果与管道符号有任何区别,我想了解这个符号在htaccess中的含义| RewriteEngine on # ### Disallow Image Hotlinking RewriteCond %{HTTP_REFERER} . RewriteCond %{HTTP_REFERER} !^http://www\.example\.net RewriteRule \.(jpe?g¦gif¦bmp¦

符号在htaccess中的作用是什么。我从htaccess的一个在线论坛上获取了一个代码,他们使用了。如果与管道符号有任何区别,我想了解这个符号在htaccess中的含义|

RewriteEngine on
#
### Disallow Image Hotlinking
RewriteCond %{HTTP_REFERER} .
RewriteCond %{HTTP_REFERER} !^http://www\.example\.net
RewriteRule \.(jpe?g¦gif¦bmp¦png)$ - [F]
#
### Externally redirect to remove ".php" if the user adds it
RewriteCond %{THE_REQUEST} ^GET\ /([^/]+/)*[^.]+\.php(\?[^\ ]*)?\ HTTP/
RewriteRule ^(([^/]+/)*[^.]+)\.php$ http://www.example.net/$1 [R=301,L]
#
### Externally redirect to remove double slashes
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . http://www.example.net/%1/%2 [R=301,L]
#
### Externally redirect to remove trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ http://www.example.net/$1 [R=301,L]
#
### Externally redirect non-canonical hostname requests to canonical
### domain (if not already done by one of the preceding rules)
RewriteCond %{HTTP_HOST} !=www.example.net
RewriteRule ^(.*)$ http://www.example.net/$1 [R=301,L]
#
### Internally rewrite requests for URLs which do not resolve
### to physically-existing files or directories to a PHP file
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]

它当然不应该存在,而且可能是从包含错误符号的源中复制和粘贴的结果

对于RegExp库,它只是另一个没有任何特殊意义的文字字符。它将不会被视为管道符号,即,它将类似于书写

RewriteRule \.(jpe?gxgifxbmpxpng)$ - [F]
这将使规则毫无用处


来源:测试以确保。

感谢您的验证。