Je suis en environnement de dev, j'accède à l'application via http://localhost/thelia2/web/
Mon .htaccess présent dans web/
Options +FollowSymlinks -Indexes
AddDefaultCharset UTF-8
<IfModule mod_rewrite.c>
RewriteEngine On
# If thelia is installed in a subdirectory (e.g., thelia2)
# define the RewriteBase below to get a proper URL rewriting
# RewriteBase /thelia2
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
L'upload de media s'effectue sans aucun problème
Dans le dossier web/ :
$ ls -ls media
4 lrwxrwxrwx 1 www-data www-data 74 oct. 28 15:58 media -> /home/reeslo/Sites/thelia2/local/modules/Tinymce/Resources/media
J'ai ajouté comme indiqué dans d'autres sujets dans local/modules/Tinymce/templates/backOffice/default/include/tinymce_init.tpl
Quelque soit chemin, relatif ou non le résultat est exactement le même :
../../../../../media/photo-camion.jpg "NetworkError: 404 Not Found - http://localhost/media/photo-camion.jpg"
/media/photo-camion.jpg "NetworkError: 404 Not Found - http://localhost/media/photo-camion.jpg"
Même lorsque je décommente la ligne #RewriteBase /thelia2 dans le .htaccess :
Avec /thelia j'accède au front mais j'ai un 404 pour l'admin
Avec /thelia2/web j'accède aux front et au back sans encombre
Mais le problème est identique, si quelqu'un a une solution je suis preneur, ça m'embête un peu d'attendre la mise en production pour pouvoir intégrer les contenus
merci d'avance