index.php sometimes showing, and favicon displaying inconsitently when on drupal 10.1.x when using on Plesk Obsidian

Created on 5 October 2023, 9 months ago
Updated 8 May 2024, about 2 months ago

Setup OS

CentOS Linux 7.9.2009 (Core)
Product
Plesk Obsidian
Version 18.0.55 Update #2, last updated on Sept 28, 2023 03:45 AM

PHP 8.1.24, FPM application served by Apache

Modules installed, path, pathauto

I have experienced a couple of issues with this setup and running Drupal.The issue is some what erratic, i.e. sometime's it works some times it does not

1. When logged into Drupal admin, url's are appended with index.php. e.g. https://www.myurl.com/index.php/news/response-required-dynamos-after-sta... see attached screen shot that show the status bar
2. When favicon is added to the document/web root, On the admin side sometimes this loads, and other times it loads another favicon, difficult to tell where this is coming from but my assumption is web/core/misc/favicon.ico

Additionally when using VSCode editor in combination of https://marketplace.visualstudio.com/items?itemName=mikestead.dotenv plugin, config in .htaccess looks broken. From what I can tell this is taken from web/core/assets/scaffold/files/htaccess and added to the document root as part of the drupal-core-scaffolding composer dependency. e.g. "drupal/core-composer-scaffold": "^10",

So, it appears to me there is an issue with this file. https://github.com/drupal/drupal/blame/10.1.x/core/assets/scaffold/files...

After some discussion on Drupal slack, my understanding is that that this line is supposed to do the following:

The rule just states that if the URL isn't the favicon path, then the request should go to index.php

If I change this line, to something like RewriteCond %{REQUEST_URI} !=\/favicon.ico

I no longer get the problem with index.php being prepended to the url
Favicon is loaded consistently on every Drupal admin page.

This leads me to believe there is a problem with the default .htaccess file which can cause apache to behave some what erratically. Please see attached screenshots:

πŸ’¬ Support request
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 1 minute ago

Created by

πŸ‡¬πŸ‡§United Kingdom 2dareis2do

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024