#htaccess

UmWerker 🕊 ☮️ 🤘UmWerker@todon.nl
2025-04-30

To display websites under #YunoHost, a special #My_Webapp application needs to be installed for each configured domain. Okay, I get that. Of course, there are pitfalls, but that's probably inevitable.

My first attempt with re-form.eu has been a failure so far. But with the knowledge I gained, I managed to get clean-web.org up and running successfully. At least.

This blog, as you know, relies on #ssi, or #shtml pages. This has to be specifically enabled in the #nginx web server, which I did. I don't know if it's in the right place or in the right way. I have the information from the original nginx documentation, and the server didn't report any errors after reloading. Furthermore, there's an #htaccess file in the web directory that specifies index.shtml as the first file to be launched. Nevertheless, only a 404 page appears.

I'd be open to suggestions 🤔 #Linux #VPS

UmWerker 🕊 ☮️ 🤘UmWerker@todon.nl
2025-04-30

Um Webseiten unter #YunoHost anzeigen zu können, braucht es für jede eingerichtet Domain die Installation einer speziellen #My_Webapp Applikation.Na gut, habe ich begriffen. Dass da natürlich Fallstricke lauern, ist wohl unvermeidlich.

Mein erster Versuch mit re-form.eu ist bislang ein Misserfolg. Mit den Kenntnissen dann aber clean-web.org erfolgreich zum Laufen gebracht. Immerhin.

Das Blog hier setzt bekanntlich auf #ssi, also #shtml-Seiten. Dies muss im #nginx Webserver extra aktiviert werden, was ich tat. Ob an der richtigen Stelle, in der richtigen Weise, weiß ich nicht. Ich habe die Angaben aus der originalen nginx-Dokumentation und der Server meldete keinen Fehler, nachdem er neu geladen wurde. Zudem existiert im Web-Verzeichnis eine #htaccess-Datei, die index.shtml als zuerst startende Datei vorgibt. Trotzdem erscheint nur eine 404-Seite.

Ich wäre für Vorschläge empfänglich 🤔 #Linux #VPS

2025-04-04

Simple Redirects with .htaccess

いしい@試行錯誤ishii@ishii00141.stars.ne.jp
2025-03-18

プラグイン「Redirection」によるリダイレクトに失敗

.htaccess に301リダイレクトを記述していたら #WordPress のサイトヘルスで怒られた。

https://ishii00141.stars.ne.jp/20250318-1407-1962/

そこで、プラグイン #Redirection をインストールしてリダイレクトを設定したのだけど、「/@ishii」から「/wp/ishii/」へのリダイレクトに失敗して404エラーページを表示した。「/@hitorinezumi」から「/wp/hitorinezumi/」へも同様である。「/wp/@ishii」から「/wp/ishii/」へや「/wp/@hitorinezumi」から「/wp/hitorinezumi/」へは問題なかった。リダイレクト先をドメイン付きで表示しても404エラーになった。

「リダイレクトを確認」したら、次のように表示された。

リダイレクトによる問題ではない可能性が高いとのこと。「どういうことですか?」のリンク先を見てもよく分からない。

Redirect is returning a 404 – Redirection
https://redirection.me/support/problems/redirect-returning-404/

プラグイン #ActivityPub がリダイレクトを禁止しているのだろうか? そうだとしても404エラーは変である。

プラグイン #Redirection によるリダイレクトを無効にしても変わらないので、有効化に戻しておくが、以前に試した時は問題がなかった。プラグイン #ActivityPub のアップデートでエラーが生じるようになったのだろうか?

ちなみに、こちらのサイトは、次のURLにアクセスできる。

https://ishii00141.stars.ne.jp/@ishii

#Htaccess #ActivityPub #WordPress #エラー #バグ #プラグイン

https://ishii00141.stars.ne.jp/20250318-1530-1968/

いしい@試行錯誤ishii@ishii00141.stars.ne.jp
2025-03-18

.htaccessでリダイレクトしてはいけないの?

もう一つの #WordPress サイトのサイトヘルスに「1件の致命的な問題」が指摘されていた。プラグイン #ActivityPub に関するもの。

1件の致命的な問題

致命的な問題とは、サイトのパフォーマンスやセキュリティに多大な影響を与える可能性がある項目です。最優先で、これらの問題を解決してください。

投稿者 URL にアクセスできません

投稿者 URL の https://hitorinezumi.cloudfree.jp/wp/author/ishii/ は別のページに転送されています。これは通常「Yoast SEO」などの SEO プラグインによって行われます。

次のページに、次のコードで転送しているのだけど…。

https://hitorinezumi.cloudfree.jp/wp/ishii/

Redirect 301 /wp/author/ishii /wp/ishii/

リダイレクト先は、プラグイン #ActivityPub の投稿者URLではないけれど、リダイレクトすることでどのような問題が生じるのだろう? プラグインを使う方法なら問題ないのはどうして?

#Htaccess #ActivityPub #WordPress #プラグイン

https://ishii00141.stars.ne.jp/20250318-1407-1962/

2025-03-10

🔥 [#OldPost] - C'è un aggiornamento sul blog ⚠️:
XML-RPC è un protocollo che consente la comunicazione tra computer su una rete, permettendo a un programma di eseguire funzioni su un altro computer. Utilizza XML per formattare le richieste e le risposte e HTTP come mezzo di trasporto. In pratica, un client invia una richiesta a un server specificando quale funzione eseguire e con qual...

👉 selectallfromdual.com/blog/147

#️⃣ #altervista #htaccess #wordpress #xmlrpc

2025-02-19
Jeff Starrperishable
2025-02-05

How to Shorten any URL with Apache/.htaccess (Rewriting vs. Redirecting) htaccessbook.com/shorten-url

Jeff Starrperishable
2025-02-03

☕️ Posting a bunch of new at my snippets site, WP-Mix wp-mix.com

Dr PenDrPen
2025-01-27

Protecting your blog from the dead eyed crawlers. You can experiment with specific robots txt, and I also run a script in htaccess. I think there are metadata properties you can declare. None of this stops your pages being crawled but may afford some legal protection. (See the German Laion case recently). I'm doing a short blogpost on this, soon.

2025-01-24

Can anyone out there help me with an #htaccess issue?

Ill explain the problem, this will most likely go over a few posts!

I have a page with a blog on it, the blog post URL's are rewritten to make them cleaner using a pretty standard bit of code...

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule rooms/(.*) /rooms/index.php?post=$1 [L,NC,QSA]

This works nicely, it turns /rooms/?post=inis-deala into rooms/inis-deala. All good.

Cont/

Denis Szalkowskibloginfo@mamot.fr
2025-01-17
Aaron Lord :csharp:devlord@hachyderm.io
2024-12-22

Anybody willing to help with #htaccess issue? I'm trying to redirect my /blog/ subfolder to blog.devlord.io new #Jekyll pages

Dr Rockstar ♫ ㉆ajaxStardust@vivaldi.net
2024-12-15

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!

elements of adbiterate require fixing debugging something
2024-11-20

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?

#askfedi #fedihelp #apache #htaccess #unix

2024-11-07

Any htaccess file experts here?

Need a bit of help!

#htaccess #coding #php #webdev

2024-10-06

🇵🇱 Nowy wpis na blogu! / 🇬🇧 New blog post!

Ciekawy przypadek ubitego WordPress’a

#ActivityPub #EnableMastodonApps #Friends #HackerNews #htaccess #plugin #Wordpress #wtyczka

Autor: @to3k

https://blog.tomaszdunia.pl/ciekawy-przypadek-ubitego-wordpressa/

Frage an #website Betreiber

Nutzt Ihr #Geoblocking per #htaccess oder andere Methoden (falls ja, welche) um Euch die lästigen Arschkrampen dieser Welt, die einem nur auf den Senkel gehen wollen, wenigstens teilweise vom Hals zu halten?

2024-08-13

⌨️ Personalizzare la favicon e l'icona di Dokuwiki elegantemente
Come modificare le icone grafiche dell'installazione del wiki grazie ad una semplice modifica dell'.htaccess...

👉 selectallfromdual.com/blog/137

#️⃣ #dokuwiki #htaccess

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst