Php 限制对当前目录的.htaccess

Php 限制对当前目录的.htaccess,php,apache,.htaccess,directory,Php,Apache,.htaccess,Directory,我试图将.htaccess文件的独家新闻限制在它的当前目录中,但似乎无法让它工作。我知道我必须使用标签,并把我的文件夹放在那里。 这就是我想到的,但它不起作用: <Directory "/home/user12345/domains/testing.com/public_html"> RewriteEngine on RewriteRule ^Home index.php?show_page=home RewriteRule ^Contact index

我试图将.htaccess文件的独家新闻限制在它的当前目录中,但似乎无法让它工作。我知道我必须使用标签,并把我的文件夹放在那里。 这就是我想到的,但它不起作用:

<Directory "/home/user12345/domains/testing.com/public_html">
     RewriteEngine on
     RewriteRule ^Home index.php?show_page=home
     RewriteRule ^Contact index.php?show_page=contact
</Directory>
有必要吗


非常感谢您的帮助

谢谢纳比尔,但我在问我的问题之前已经读过这个问题了,我真的不知道那里给出的答案是如何回答我的问题的。似乎那里的TS同时还想做其他事情。似乎我误读了,指令不能在.htaccess中使用?
     RewriteRule ^Home home/user12345/domains/testing.com/public_html/index.php?show_page=home