comment delimiters in .htaccess?

Discussion in 'Site & Server Administration' started by Dollar, Feb 28, 2008.

  1. #1
    You know how other programming language have comment delimiters.
    Like php

    php
    //comment

    perl
    ##comment

    Does .htaccess have this? Thanks! Like to know. Make my life easier with a big .htaccess file.
     
    Dollar, Feb 28, 2008 IP
  2. Dondon2d

    Dondon2d Peon

    Messages:
    3,193
    Likes Received:
    146
    Best Answers:
    0
    Trophy Points:
    0
    #2
    A single pound sign aka hash (#) before the line you want to comment out will do.
     
    Dondon2d, Feb 28, 2008 IP
  3. Shadab

    Shadab Peon

    Messages:
    376
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #3
    # is used to comment out the whole line.

    Example :

    
    # This will turn on the mod_rewrite engine
    
    RewriteEngine On
    
    Code (markup):
     
    Shadab, Feb 28, 2008 IP