1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Solved: can you make comments in .htaccess files?

Discussion in 'Web Design & Development' started by namenotfound, Jan 6, 2006.

Thread Status:
Not open for further replies.
Advertisement
  1. namenotfound

    namenotfound Thread Starter

    Joined:
    Apr 30, 2005
    Messages:
    3,012
    I got a couple of .htaccess files I use on my sites for various stuff.

    Just wondering if I can add little comments without the server reading them?
     
  2. Shadow2531

    Shadow2531

    Joined:
    Apr 30, 2001
    Messages:
    2,636
    Never tried, but starting a line with # in httpd.conf works. Does that work in htaccess?
     
  3. namenotfound

    namenotfound Thread Starter

    Joined:
    Apr 30, 2005
    Messages:
    3,012
    Thanks, one more question.

    I just have to add "RewriteEngine On" once at the top of the file right?
    'cause I've been using it to start off every command :p
    I have like 5 different types of commands in my .htaccess file, so I wrote RewriteEngine On 5 times

    I could probably save a couple of kb by only having it once :D
     
  4. brendandonhu

    brendandonhu

    Joined:
    Jul 8, 2002
    Messages:
    14,681
    Yes, just needs to be in there once.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Similar Threads - Solved comments htaccess
  1. jacksonjob0689
    Replies:
    0
    Views:
    324
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/431576

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice