htaccess Comments


How to add comments in htaccess files ?

htaccess comments code is not executed. it's only for information purpose.

1. Example

# Error Page 
ErrorDocument 404 /errors_pages/404.html

2. Example

#301 Redirection
Redirect 301 /old.htm http://www.example.com/new/ #this is comment