Recent Topics

1 Feb 13, 2006 19:24    

Hi,
In another thread there is a link to a blog that discusses why it's bad to share statistics. The author suggests modifying the .htaccess file with this rule

RewriteCond %{QUERY_STRING} disp=stats [NC]
RewriteRule ^.*$ - [G,L]


I don't know anything about coding, but shouldn't there be some sort of tag before and after to make it work? I wasn't able to get an answer on his page. Would appreciate any help.
Thanks,
JG

2 Feb 13, 2006 20:14

tag? what do you mean?

3 Feb 13, 2006 23:20

whoo wrote:

tag? what do you mean?

Well, when I looked in the file, the other code in there looked like this, for example:

<IfModule mod_dir.c>
	DirectoryIndex index.php index.html
</IfModule>

So I didn't know if simply inserting

RewriteCond %{QUERY_STRING} disp=stats [NC] 
RewriteRule ^.*$ - [G,L]


would work.

That is my question. If you have any suggestions, that would be great.
Thanks.

4 Feb 14, 2006 11:46

those are 2 different types of entries, they arent equivalent.

the top one is using Apache's mod_dir (its in EVERY Apache install) and in fact the <tags>, as you called them, arent even necessary :)

The second entry is using mod_rewrite (its installed on 99.9999% of Apache installs). Youre prolly using it already to generate your permalink pages. :)


Form is loading...