The 5,000th post here should say last
Note: This is not the 5,000th post.
Anyway, I wanted to know if anyone has an answer for this:
The Error pages thing in the control panel continues not to work for me, so I added the ErrorDocuments to my .htaccess file inside the /htdocs folder instead. Here are those lines:
ErrorDocument 400 https://domain.tld/error/400
ErrorDocument 401 https://domain.tld/error/401
ErrorDocument 403 https://domain.tld/error/403
ErrorDocument 404 https://domain.tld/error/404
ErrorDocument 408 https://domain.tld/error/408
ErrorDocument 429 https://domain.tld/error/429
ErrorDocument 500 https://domain.tld/error/500
ErrorDocument 502 https://domain.tld/error/502
ErrorDocument 503 https://domain.tld/error/503
It all works fine (Going to a non-exsistent page redirets to /error/404) however, when I go to domain.tld/errors/404 (Note the extra s) It shows some broken iFastNet 404 instead! Most other non-exsistent pages go to my 404, but for some reason this one does not. I do not have a directory called âerrorsâ, and here is my full (And only) .htaccess file.
#Not allow directory pages
IndexIgnore *
Options -Indexes
Options +MultiViews +FollowSymLinks
RewriteEngine On
RewriteBase /
#Check Spelling
CheckSpelling on
#Remove .HTML
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
RewriteRule ^ %1 [R,L,NC]
#Remove .PHP
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
RewriteRule ^ %1 [R,L,NC]
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#Force HTTPS
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [R=301,QSA,NC,L]
#Expires Modual
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 5 days"
ExpiresByType text/css "access plus 5 days"
ExpiresByType text/js "access plus 14 days"
ExpiresByType text/javascript "access plus 14 days"
ExpiresByType application/javascript "access plus 14 days"
ExpiresByType image/gif "access plus 2 months"
ExpiresByType image/jpeg "access plus 2 months"
ExpiresByType image/png "access plus 2 months"
ExpiresByType image/webp "access plus 2 months"
ExpiresByType image/x-icon "access plus 2 months"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
</IfModule>
#301 Redirects
Redirect 301 /games /shop/games
Redirect 301 /print /shop/print
#Error Documents
ErrorDocument 400 https://domain.tld/error/400
ErrorDocument 401 https://domain.tld/error/401
ErrorDocument 403 https://domain.tld/error/403
ErrorDocument 404 https://domain.tld/error/404
ErrorDocument 408 https://domain.tld/error/408
ErrorDocument 429 https://domain.tld/error/429
ErrorDocument 500 https://domain.tld/error/500
ErrorDocument 502 https://domain.tld/error/502
ErrorDocument 503 https://domain.tld/error/503
Let me know if there is a reason behind this!
Oh, here is a screenshot of the broken 404 that is not mine:
When it displays this 404, the URL bar stays at /errors/404 and does not redirect
So, the errors folder is sort of reserved for Apache to load errors (sort of like a restricted folder on Windows); so it points to a broken 404 (even though that broken 404 is a syndrome of not having the webroot created for your domain because of home folder or disk issues, but because of their server configuration also the errors folder shows that broken page, even though they restricted access via a browser), even though some folders used by PHP either give a free hosting platform custom 404 (like for example InfinityFree) if not created or a 403 when created. But still, it might not be right, as I was writing this in the middle of the night (yep, it is 1:18 AM GMT+2 at the time of writing and editing this, so I also have to go to sleep in a while).
EDIT: Discourse thinks that this post is penultimate, but still, we are almost 40 posts left! By the way, Im still active, but halfly as I also have irl issues and im also busy with some things for sure. I could also reply to and moderate some posts in the time Ive got to read all the topics.
Got it. Could I overide it somehow, or is it something that I will just have to live with?
So youâre saying that it shouldnât show, but it does because something is not set up correctly?
Go to bed! I always wonder how people can go to sleep so late but still wake up. Maybe its coffeeâŚ
There is a limit on the number of posts in a topic???
Yay! I havenât seen you in a long time, I was getting worried we lost another mod!
just donât call the folder errors
because itâs a reserved name (webserver use it)
Good morning! Fortunately I slept well, and didnât need coffee to stay awake during the night; by the way, I slept after some minutes I posted and edited that reply.
I thought it was 5000 posts at first, but it is hard-coded to be double than that. So yes, there is a limit on the number of posts in a topic.
By the way, this post is brought to you by my mobile device!
I wish I could fall asleep that fast!
Did anyone see the client area upgrade? I like the new information boxes, but I think I like the old layout on the client homepage better.
Lol, same!
Oh man. I though I was done with the WP part of my site. Apparently not
If you canât tell, the cookie banner is hidden behind the bottom nav, and the blue banner is hidden behind the cookie one. You canât dismiss either one.
As much as I hate to admit it, apparently this is true:
Note: ik lmao
Iâm intensely watching the Euro 2020s (2020?)
The winners arenât very predictable so far.
Does anyone know how to use 301 redirects?
I am trying to redirect htdocs/directory/page
to htdocs/directory
, but it continues not to work. My htaccess file is in the htdocs
direcotory, and contains this 301:
Redirect 301 /directory/page /directory
Right now, I have a âThis page has movedâ message, and a <meta>
redirect, but I donât think that works with all browsers, or if browser redirects are turned off, correct?
Thanks for any help!
this topic has gone very quiet
Good morning!!!
Welp
calm before the storm
RIP this topic
make an update for PHPMailer
here Release Security Updates ¡ InfinityFreeHosting/contactform ¡ GitHub
reason NVD - CVE-2021-3603
Thanks @Oxy!