Hello, first of all, thank you for making the forum available for free use.
I use chevereto for an image upload script. I managed to install the flarum forum in the /forum directory.
However, the script I use shows this site as broken. My domain .htaccess code in the main directory is like this.
I wonder how I can edit it?
Can anyone with information please help.. thank you very much.
> ServerSignature Off
> Options -Indexes
> Options -MultiViews
> # CORS header (avoids font rendering issues)(replace dev\.local with your domain\.com)
> # SetEnvIf Origin ^(https?://.+\.dev\.local(?::\d{1,5})?)$ CORS_ALLOW_ORIGIN=$1
> # Header append Access-Control-Allow-Origin %{CORS_ALLOW_ORIGIN}e env=CORS_ALLOW_ORIGIN
> # Header merge Vary "Origin"
> <FilesMatch "\.htaccess|LICENSE">
> Require all denied
> </FilesMatch>
> <IfModule mod_rewrite.c>
> RewriteEngine On
> # If you have problems with the rewrite rules remove the "#" from the following RewriteBase line
> # You will also have to change the path to reflect the path to your Chevereto installation
> # If you are using mod alias is likely that you will need this.
> #RewriteBase /
>
> # Image not found replacement
> RewriteCond %{REQUEST_FILENAME} !-f
> #RewriteRule images/.+\.(gif|jpe?g|a?png|bmp|webp) content/images/system/default/404.gif [NC,L]
> RewriteRule images/.+\.(gif|jpe?g|png|bmp|webp) - [NC,L,R=404]
>
> # PHP front controller
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule . index.php [L]
>
> # Single PHP-entrypoint
> RewriteCond %{THE_REQUEST} ^.+?\ [^?]+\.php[?\ ] [NC]
> RewriteRule \.php$ - [NC,L,F,R=404]
> </IfModule>