Zavy86 / WikiDocs

📗 Just a databaseless markdown flat-file wiki engine
https://www.wikidocs.it
MIT License
316 stars 44 forks source link

annoying url slash wikidocs error #154

Closed ffiesta closed 4 months ago

ffiesta commented 4 months ago

Describe your issue

I have wikidocs instaled on subfoder off another domain and when I change from subfolder to a specific folder it' crash, remove the slash on url.

I talked with host support and they told that is a a bad configuration on wikidocs and the browser use cache instead off web content.

  1. Setup inicial example.pmt.pt -> /example_root_folder
  2. Setup inicial biblio.pmt.pt -> /example_root_folder/biblio

I use this configuration only to use same point of FPT entry, to upload and download files. If i try to access through example.pmt.pt/biblio i receive a erro because htaccess file wikidocs as configured to root.

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?doc=$1 [NC,L,QSA]
</IfModule>

All site works fine with my 465 md files plus plus files.

Then a change the root_folder location and crash wiki

  1. Create new root_folder to wikidocs /biblio_root_folder/
  2. Change biblio.pmt.pt -> to /biblio_root_folder ant it break/crash with:

If i change all content to a new subdomain or subfolder all works fine.

This occur only in my devices and after search in internet they say the problem with cache. But notting solve

I think this error only occurs on my devices, but given that it affects all my browsers and devices, I think it's strange.

Reseller support reports that cpanel is sending the files correctly, however... either they get lost or...

From what I know of how browsers work, if they do not receive the correct information, they return whatever is at hand or a random error as it was not programmed with the correct information. I point out that although there may be a problem with the browser cache... cpanel sends the correct file but along the way it gets lost... and the browser returns the error based on what you have programmed. <- - Is there any way to test this theory!?

Can you help, or it better create another sub-domain!?

Thanks

Device and settings

Windows 10/11/android (chrome, brave, edge, firefox ...)

Steps to reproduce

See describe issue

Screenshots (optional)

biblio erro 2 biblio erro 404 1 biblio erro 404 biblio erro browser img-20240723 sem conteudo Screenshot_20240719-150052_Chrome

Extra fields

ffiesta commented 4 months ago

resolved,

My host reseller make a server update.