hangar11studios
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: Remove index.php on OpenBSD’s httpdHello,
I’ve been very busy in the last time, now I had a bit of free time and I found something interesting.
Only now do I realize that I do not have Apache. I only have the httpd daemon which is OpenBSD’s web server. I guess it is considered more secure?
I tried changing permissions to 775 instead of 755 but WordPress would not create the .htaccess file, I manually added it (though I think this had no effect as mod_rewrite does not really exist in my setup).
I tried to create a rewrite rule in httpd but the website won’t load properly if I do it like this. If I try to navigate from the cached website I get the permalinks right, but from a browser with no cache the website will load completely broken…
location "*" { request rewrite "/index.php/" }
Now, I tried to add these lines of code in .htaccess but it does not anything. If it is possible to somehow do a rewrite rule for the httpd daemon from the .htaccess file then the problem is solved, else I will have to install Apache (which is not officially supported on OpenBSD).
Forum: Fixing WordPress
In reply to: Remove index.php on OpenBSD’s httpdI commented all apart from the acme and *php ones, no change.
I checked some other host file, it only contains the 127.0.0.1 IP.
I really have no idea what is causing this but I was hoping whether it’s possible to do a workaround like when “hangar11.studio/page” is requested it should internally go to “hangar11.studio/index.php/page”, but I have no idea how to configure a “rewrite” rule to do that.Forum: Fixing WordPress
In reply to: Remove index.php on OpenBSD’s httpdWordPress and site address are both https://hangar11.studio
- This reply was modified 4 years, 1 month ago by hangar11studios.
Forum: Fixing WordPress
In reply to: Remove index.php on OpenBSD’s httpdI believe it is caused by how WordPress is set up, I disabled all the plugins but that did not change anything (I only have phlox, Elementor, maichimp and a few related, nothing for SEO). Here is a screenshot of the permalinks settings page. Deleting “index.php” in the custom structure field gives a 404 Error (OpenBSD httpd) when visiting “hangar11.studio/page-name”.
I know this can be fixed somewhere in the httpd.conf file that I included in my original post, with some “rewrite” function, but I have very little knowledge in how to configure httpd so I can’t find a solution. I did not manage to find anyone with a similar problem (and the same setup) after searching far and wide on the web.
Forum: Fixing WordPress
In reply to: Remove index.php on OpenBSD’s httpdHi,
I know it is critical for the website to work, I am trying to remove it from the website permalink, the reason is it is not very cosmetic, I want to have permalinks configured to “hangar11.studio/page-name” instead of “hangar11.studio/index.php/page-name”