Linux serverlinux web serverNETWORK ADMINISTRATIONS

Using .htaccess files: common usage and an example

Access the full course ➤ https://davehollingworth.net/localhosty

Part of the course “Set up a localhost Web Server for Faster Website Development”.

Common usage of .htaccess files to configure the Apache web server and a working example.

Sites shown in the video:

HTAccess


https://github.com/phanan/htaccess

source

by Dave Hollingworth

linux http server

9 thoughts on “Using .htaccess files: common usage and an example

  • The github link requires a membership. It is not a direct link to a public resource. However the CSS-tricks link is public and helpful. Please place any links you mention in the description section of your video for sake of your viewers. Thanks.

  • If I want to add a canonical tag to a PDF, do I add the code to the .htaccess file. If so, where inside the .htaccess file or does it not matter? thanks.

  • Thanks for the video! When would you choose to use a .htaccess file over configuring via the VirtualHost configuration? I guess the former is configurable at a directory level, whereas the latter is configurable only at the VirtualHost level?

Comments are closed.