Forum Moderators: phranque

Message Too Old, No Replies

# ----- Realmman End -----

Comments in a .htaccess file

         

jbinbpt

12:13 am on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I found these comments in a .htaccess file. What do they mean?

thanks
jb

coopster

3:26 am on Aug 13, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Looks like somebody's signature if anything -- and a truly useless comment ;)

sun818

4:12 am on Aug 13, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Since we are on the subject of .htaccess comments, how does one go about commenting .htaccess? Can I comment at the end of line? Take the "deny from" line. Is the syntax correct?

<Limit GET>
order deny,allow
deny from 80.87.66. # Ghana
allow from all
</Limit>

coopster

5:29 pm on Aug 15, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



No, can't do that to the best of my knowledge. Lines that begin with the hash character "#" are considered comments, and are ignored. Comments may not be included on a line after a configuration directive.

[httpd.apache.org...]