home.social

#mod_rewrite — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #mod_rewrite, aggregated by home.social.

  1. Как подружить .htaccess файл для популярных CMS с Nginx

    Начну с небольшого вступления: зачем вообще нужен .htaccess файл? .htaccess — это конфигурационный файл, который использует веб‑сервер Apache для задания специфических настроек для каждой отдельной папки сайта. Благодаря ему можно:

    habr.com/ru/articles/1013982/

    #nginx #nginx_module #mod_rewrite #htaccess

  2. This is where I am w/ the github repo @zombiewarrior

    It's really close to being "right", so to speak.

    compare that to e.g.
    statecollegeguitarlessons.com/

    Note: my server is #LiteSpeed and i don'[t mess w/ it. But, that should not have the /public/ in the URL. If you've ever worked w/ #laravel it's like the ./index.php of the proj dir there. where there's ./index.php "reditrecting" to ./public/index.php
    but you need to mod the #NGINX server {} location {} stuff for the... mod_rewrite type stuff.
    i.e. the URL should be .com/giterator/ , accomplished in nginx w/ "@alias"
    (sans the ./public part). you see the same thing either way. pet peeves.

    EDIT: ALSO! CORRECTION -do NOT see the same! ARGGH! w/out that #mod_rewrite bit #htaccess whatever!~ the #CSS #asset paths mess up as well. Prob explains the missing SVG (masthead.php) forgot about that. oh well. hey. gimme a damn break! brain damage!
    SEE "new" version here, ( i can fix that path thing. i forget the quick path top of my head momentarily. i prefer to be correct instead, anyway!)
    this is NOT correct! statecollegeguitarlessons.com/

    first time w/ the #namespace #php8 #composer #autoloader #PSR4 #MVC #refactoring.

    i must admit, it was more challenging that i expected.

    but yea. feel free to hop in there at any time, and help me polish that old turd already!
    Sheesh!