101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

479
active users

#htaccess

0 posts0 participants0 posts today

I am struggling to make this work. I have this site structure:
example.com/index.html
example.com/blog.html (which servers as an index for my blog)
example.com/blog/0001.html (a post)
example.com/blog/0002.html (another post, etc.)

I'd like that if a visitor types "example.com/blog" then blog.html from the upper folder should be loaded, but I can't find the proper rule(s) to add to an .htaccess file, or where to place it.

I would also like to avoid moving blog.html to blog/index.html, but I could deal with it.

Can somebody provide me with proper instructions? I've tried searching with different terms but I don't quite get the answer to my problem, or I am not understanding what they do.

This is a shared hosting, so modifying httpd.conf is not on the table.

example.comExample Domain

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!

What is the correct way to configure .htaccess to send all requests to a unix domain socket?

Ivtried variour enchantement with mod_proxy and mod_rewrite without success.

.htaccess only because I want it to work on shared hostings.

Also, what about NON php fcgi?
I couldn't even get it working with mod_proxy_cgi (again, .htaccess only). The receiving server is up and running, listening at the destination UDS.

Am I missing something obvious?

@mlanger @mrbadger42 @Sheril

Of course. There are many examples online, here is my .htaccess:

RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(albert|www)\.rierol\.net/.*$ [NC]
RewriteRule \.(jpg|png|jpeg|gif)$ - [F]

Means:
Line 1: switch on.
Line 2: calling page can't be nothing.
Line 3: calling page can't be anything other than my own (sub)domains.
Line 4: if the file has an image extension, then fail.

#htaccess #HttpTips #

Hiya Mastodon !

J'ai besoin de ton aide en informatique (développement web, #sysadmin).

Je viens de mettre en prod mon nouveau site, avec une petite #redirection simple, fournie par la doc de Grav (le CMS utilisé) :

RewriteCond %{REQUEST_URI} !^/grav/
RewriteRule ^(.*)$ /grav/$1 [R=301,L]

Or donc, ça m'a fait péter un autre site : informatique.lamecarlate.net/ (regardez les ressources, elles sont toutes redirigées).

Une idée ? Merci :3

Contenu de mon #htaccess ici :
ondin.es/zerobin/?10eaaedc3b69

informatique.lamecarlate.netCodex sphinxial