.htaccess htaccess文件名前带/不带斜杠
文件夹结构:.htaccess htaccess文件名前带/不带斜杠,.htaccess,.htaccess,文件夹结构: root/.htaccess root/dont-index-me.php User-agent: * Disallow: /dont-index-me.php User-agent: * Disallow: dont-index-me.php User-agent: * Disallow: dont-index-me.php 如上所示,htaccess文件和dont-index-me.php位于同一个文件夹中,那么哪个是htaccess文件的正确内容 带斜杠: root/
root/.htaccess
root/dont-index-me.php
User-agent: *
Disallow: /dont-index-me.php
User-agent: *
Disallow: dont-index-me.php
User-agent: *
Disallow: dont-index-me.php
如上所示,htaccess文件和dont-index-me.php位于同一个文件夹中,那么哪个是htaccess文件的正确内容
带斜杠:
root/.htaccess
root/dont-index-me.php
User-agent: *
Disallow: /dont-index-me.php
User-agent: *
Disallow: dont-index-me.php
User-agent: *
Disallow: dont-index-me.php
不带斜杠:
root/.htaccess
root/dont-index-me.php
User-agent: *
Disallow: /dont-index-me.php
User-agent: *
Disallow: dont-index-me.php
User-agent: *
Disallow: dont-index-me.php
谢谢不用斜杠: