Jump to content

Featured Replies

Posted

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?

Solved by Randy Calvert

Go to solution
  • Community Expert

v5 provides the same downloadable file as v4 in the same location.

  • 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?

Excuse Me What GIF by Bounce

  • 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.

  • 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. :)

  • 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?

Excuse Me What GIF by Bounce

image.png

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.

  • Author

Odd! Here is my v5 self-hosted instance, I searched for htaccess and it was the only result.

Search_Engine_Optimization_-_Google_Chrome.png

  • 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 by Randy Calvert

  • 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 below

https://support.plesk.com/hc/en-us/articles/12377525282967-How-to-enable-Apache-nginx-rewrite-rules-in-Plesk

Then I have to remove the line RewriteBase / and check the Proxy Mode box:

Apache_&_nginx_Settings_for_elon.report_-_Plesk_Ob.png

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. :)

  • 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 -MultiViews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule \.(js|css|jpeg|jpg|gif|png|ico|map|webp)(\?|$) /404error.php [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Recently Browsing 0

  • No registered users viewing this page.