.htaccess notes

Article on mod_rewrite examples:

http://articles.sitepoint.com/article/apache-mod_rewrite-examples/

http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

block a user agent from a specific set of URLs, in this case spoofed bingbot + wordpress admin login: http://boomshadow.net/tech/fixes/spoofed-bingbot/

-----

From e-smith.org:

Some alternative to .htaccess Alex, Although it's not recommended, the e-smith way to do it is: #cp /etc/e-smith/templates/etc/httpd/conf/httpd.conf/90e-smithAccess10primary /etc/e-smith/templates-custom/etc/httpd/conf/httd.conf/90e-smithAccess10primary Then modify this file to include the "AllowOveride AuthConfig" statement and then expand the template file with #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf Then restart apache Another e-smith way of doing it, and one which is recommeneded, by me at least, is to create a custom template fragement for httpd.conf, and add a block, which adds the password restriction that you want to add without using a .htaccess file.

Regards Charlie

----

tags: htaccess, httpd, apache

Related Scribbles:
  • E-smith


  • ID: 155
    Author:
    leonard
    Date Updated:
    2014-04-05 14:50:06
    Date Created:
    2001-10-19 16:52:37

    Edit

    Comments?
     >> Leonard Chan's Homepage  >> Scribble Web  >> .htaccess notes
    leonard.lotus-land.ca is hosted by Perceptus Solutions Inc.