Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted March 2Mar 2 I'm ignorant about the .htaccess structure. V4 used to provide a file to upload, but now V5 only shows a sample file. Where can I get the exact file I need for my configuration?
March 2Mar 2 Author v5 provides the same downloadable file as v4 in the same location.v4 said download this file and replace it on your server. It then made sure you had uploaded it.v5 says For assistance on how to do this, contact your hosting provider or system administrator.To see the .htaccess used for Apache servers for comparison, download this file. If I download that comparison file, it does not work. If it is the same, why does the wording suggest it's not?
March 2Mar 2 Community Expert I'm replying from my phone so I can't check right now, but I don't remember seeing that wording about Apache servers. 🤔Is v5 installed on the same server? It's possible PHP or Apache are configured differently if it's a different one.
March 2Mar 2 Author I'm replying from my phone so I can't check right now, but I don't remember seeing that wording about Apache servers. 🤔Is v5 installed on the same server? It's possible PHP or Apache are configured differently if it's a different one.Yes - the only change I made between v4 and v5 was upgrade php from 8.1 to 8.2.When you get back to your comp, let me know if you can provide a file for my server. :)
March 2Mar 2 Community Expert v4 said download this file and replace it on your server. It then made sure you had uploaded it.v5 says For assistance on how to do this, contact your hosting provider or system administrator.To see the .htaccess used for Apache servers for comparison, download this file.If I download that comparison file, it does not work. If it is the same, why does the wording suggest it's not?That's from my v5 self-hosted instance. Search "htaccess" in the search bar and it's the only result. (It shows up as "[System] Friendly URLs".)This is the same as I remember from v4. I don't have a v4 anymore, but the instructions and the file should be there.
March 2Mar 2 Author Odd! Here is my v5 self-hosted instance, I searched for htaccess and it was the only result.
March 2Mar 2 Community Expert Solution Have you confirmed your server has the mod_rewrite module enabled and working correctly? It may need enabled for your specific hostname as well as that can be turned on/off at the vhost level. The screenshot looks IPS is checking for your mod_rewrite and not seeing it properly so telling you to fix it first. Edited March 2Mar 2 by Randy Calvert
March 2Mar 2 Author Have you confirmed your server has the mod_rewrite module enabled and working correctly? It may need enabled for your specific hostname as well as that can be turned on/off at the vhost level. The screenshot looks IPS is checking for your mod_rewrite and not seeing it properly so telling you to fix it first.Yep - I think you are right. I'm using Plesk for Linux and they do it via "Additional Apache Directives". I followed the instructions belowhttps://support.plesk.com/hc/en-us/articles/12377525282967-How-to-enable-Apache-nginx-rewrite-rules-in-PleskThen I have to remove the line RewriteBase / and check the Proxy Mode box:It appears to be working - thank you!Now I am back to my original problem - I can't name my custom page chat/chat.php because it seems to mis redirect. I'll just name it to something else. :)
March 3Mar 3 Author I'm still having problems with my chat add-on related to mod_rewrite. The chat link is located in https://elon.report/chat/ Once you are in the chat, it never requests another page so it works fine - but I can't get into the chat anymore. :(Here is my main mod_rewrite. Can anyone tell me if it looks OK so I can troubleshoot elsewhere? If it's best practice - is there a way I can turn off the rewrite just for chat?Or, what is the URL I need to use to have this redirect to https://elon.report/chat/chat.php ?<IfModule mod_rewrite.c>Options -MultiViewsRewriteEngine OnRewriteBase /RewriteCond %{REQUEST_FILENAME} !-fRewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map|webp)(\?|$) /404error.php [L,NC]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>
March 3Mar 3 Community Expert Or, what is the URL I need to use to have this redirect to https://elon.report/chat/chat.php ?You would need a custom rewrite rule.