Can any one consult me about what language or what to learn so that I can write rules that are found in .htaccess?
Thanks
First off, you should understand what htaccess can be used for and when it should not be used. There is a performance hit when htaccess is enabled, even if it is not used, so it should be used only in cases where a user does not have access to the main configuration files, such as a user on shared hosting. Any configuration set in htaccess can also be set in the server configuration file if the user has access to it. htaccess can be disabled altogether by setting AllowOverride None in the Apache httpd.conf file.
http://httpd.apache.org/docs/current/howto/htaccess.html
Then someone should understand what kinds of things can be controlled in htaccess files. Understanding Apache directives:
http://httpd.apache.org/docs/2.4/mod/directives.html
http://httpd.apache.org/docs/2.4/mod/quickreference.html
A thorough understanding of how mod_rewrite works, which is one of the more common uses for htaccess:
http://httpd.apache.org/docs/2.4/rewrite/
Including how an actual rewrite works and regular expression pattern matching:
http://httpd.apache.org/docs/2.4/rewrite/intro.html
And understanding Apache server variables and expressions is helpful:
http://httpd.apache.org/docs/2.4/expr.html
There may be more.
If I could upvote this answer, I would. It may seem like a lot of reading, but the official documentation is the most comprehensive and accurate source out there.
Learn the limited subset of regular expressions which can be used on Apache variables.
You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It’s helped may members and should help you,
Regards,
DK
thanks boss!