I want to learn! htaccess, apache, c++ (novice, need experienced help!)

Discussion in 'Programming' started by johnsmitha111, Dec 12, 2011.

  1. #1
    Hi,

    I looking to learn the language for a htaccess, is this written in C++? I know how to write a simple 301 redirect but I would like to understand how the language is actually written, what all the characters, numbers and symbols actually mean and how to fit them together, I hope this makes sense!

    On another note, similar question, I have used a gbase.php file for google shopping feed, same question again, what could I learn to understand how it all fits together!

    Any decent books or pointers are much appreciated!

    Thanks again.

    John
     
    johnsmitha111, Dec 12, 2011 IP
  2. proactiv3

    proactiv3 Peon

    Messages:
    55
    Likes Received:
    7
    Best Answers:
    4
    Trophy Points:
    0
    #2
    .htaccess is a configuration file. It's not written in any programming language - it just has a syntax that was conventionalized by the team who developed Apache.

    As for the file itself, take a look at this article: http://net.tutsplus.com/tutorials/other/the-ultimate-guide-to-htaccess-files/

    What you might be referring to is the configuration of the mod_rewrite plugin. It utilizes the PCRE library to match the redirections through regular expressions.

    You might start off by reading the mod documentation itself - mod_rewrite - specially the part referring to Regular Expressions. After that move on to the PCRE documentation.

    Good luck
     
    proactiv3, Dec 12, 2011 IP
  3. johnsmitha111

    johnsmitha111 Peon

    Messages:
    3
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi, proactiv3, thanks very much for your response! Will have a look at the links listed!

    Thanks again!
     
    johnsmitha111, Dec 14, 2011 IP