I have a problem with this... I'm using free hosting for giving a demo to my future buyers of my own cms.
The hosting is hubuhost.com, they are supporting the last version of php 8.1. The problem is that they are on nginx and do not support my htaccess rules from apache.
My config is :
<IfModule mod_negotiation.c>
#Important rules for our system
Options -Multiviews -Indexes +FollowSymLinks
</IfModule>
#app.php instead of index.php
<IfModule mod_dir.c>
DirectoryIndex core.php index.php index.html
</IfModule>
#If 404 - redirect to 404 page
ErrorDocument 404 /404/index.php
<IfModule mod_rewrite.c>
#ModRewrite ON
RewriteEngine on
#News SEO Urls
RewriteRule ^topic_(.+?)$ core.php?id=$1
#Router
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ core.php [QSA,L]
#remove end trailing slash from urls
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} /(.*)/$
RewriteRule ^ /%1 [R=301,L]
</IfModule>
#Block ENV access
<IfModule mod_version.c>
<Files "config.env">
Order allow,deny
Deny from all
</Files>
</IfModule>
Can someone convert this to nginx ?
I try with some rules but without success. I don't know what to do...
Demo pic from admin panel: https://i.ibb.co/gwZStXN/image.png