Using .htaccess files: common usage and an example

Поделиться
HTML-код
  • Опубликовано: 26 авг 2024
  • Access the full course ➤ davehollingwor...
    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:
    css-tricks.com...
    github.com/pha...

Комментарии • 14

  • @thomasedwardking7286
    @thomasedwardking7286 4 года назад +4

    Omg where have you been all my life, bro? Amazing dude. So subscribed right now!!

  • @kasimanelson-kanel
    @kasimanelson-kanel Год назад +2

    very very very useful, thanks aloooot

  • @kitkatcats3360
    @kitkatcats3360 3 года назад +2

    Very clear and useful. Thank you.

  • @teuluPaul
    @teuluPaul 3 года назад +2

    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?

    • @dave-hollingworth
      @dave-hollingworth  3 года назад +1

      If you have access to the config files, it's faster to put any configuration settings in there if possible. .htaccess files are useful when you don't have access to these, or you prefer to have the config settings in your codebase.

    • @teuluPaul
      @teuluPaul 3 года назад +1

      @@dave-hollingworth thanks Dave!

  • @a-levelbusinessrevision
    @a-levelbusinessrevision Год назад +1

    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.

    • @dave-hollingworth
      @dave-hollingworth  Год назад +2

      Never tried it, but there's a link here: www.inmotionhosting.com/support/website/how-to-canonicalize-images-and-pdfs-with-the-htaccess-file/

  • @pfranklin
    @pfranklin Год назад

    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.

    • @dave-hollingworth
      @dave-hollingworth  Год назад +1

      Good call, I've added the links. The GitHub link is public though, it doesn't require membership to view it.

    • @pfranklin
      @pfranklin Год назад

      @@dave-hollingworth Ok I must have done something wrong. I thought I coppied the link and it took me to github and told me to log in or create an account. I will try it again.

  • @moisescamacho7364
    @moisescamacho7364 4 года назад +1

    good my like

  • @JohnFowler1
    @JohnFowler1 10 месяцев назад

    Computer s