Error in die Installation des Live-Systems in eine Testumgebung, vielleicht htaccess ?Danke sehr

Hallo, 

ich habe eine Liveshop bei mir lokal installiert zuerst hatte ich die alle dateien ausser /media und htaccess runtergeladen und die anpassung mit config und die datenbank tabelle  s_core_shops auch gemacht und wenn ich die localhost/dieprojektordner im browser aufgerufen dann kommt eine seite mit index of und dann eine list mit alle dateien in hauptordner dann habe ich die htaccess datei runtergeladen und jetzt wenn ich im browser die localhost/dieprojektordner aufrufen dann lädt die browser direkt eine datei mit diese Inhalt unten. muss ich im htaccess anpassung machen ? wenn ja was muss ich ändern.

 

<?php
/\*\*  \* Shopware 5  \* Copyright (c) shopware AG  \*  \* According to our dual licensing model, this program can be used either  \* under the terms of the GNU Affero General Public License, version 3,  \* or under a proprietary license.  \*  \* The texts of the GNU Affero General Public License with an additional  \* permission and of our proprietary license can be found at and  \* in the LICENSE file you have received along with this program.  \*  \* This program is distributed in the hope that it will be useful,  \* but WITHOUT ANY WARRANTY; without even the implied warranty of  \* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the  \* GNU Affero General Public License for more details.  \*  \* "Shopware" is a registered trademark of shopware AG.  \* The licensing of the program under the AGPLv3 does not imply a  \* trademark license. Therefore any rights, title and interest in  \* our trademarks remain entirely with us.  \*/ // Check the minimum required php version if (version\_compare(PHP\_VERSION, '5.6.4', '     header('Content-type: text/html; charset=utf-8', true, 503);     echo ' ## Error ';     echo 'Your server is running PHP version ' . PHP\_VERSION . ' but Shopware 5 requires at least PHP 5.6.4';     echo ' ## Fehler ';     echo 'Auf Ihrem Server läuft PHP version ' . PHP\_VERSION . ', Shopware 5 benötigt mindestens PHP 5.6.4';     return; } // Check for active auto update or manual update if (is\_file('files/update/update.json') || is\_dir('update-assets')) {     header('Content-type: text/html; charset=utf-8', true, 503);     header('Status: 503 Service Temporarily Unavailable');     header('Retry-After: 1200');     if (file\_exists(\_\_DIR\_\_ . '/maintenance.html')) {         echo file\_get\_contents(\_\_DIR\_\_ . '/maintenance.html');     } else {         echo file\_get\_contents(\_\_DIR\_\_ . '/recovery/update/maintenance.html');     }     return; } // Check for installation if (is\_dir('recovery/install') && !is\_file('recovery/install/data/install.lock')) {     if (PHP\_SAPI == 'cli') {         echo 'Shopware 5 must be configured before use. Please run the Shopware installer by executing \'php recovery/install/index.php\'.' . PHP\_EOL;     } else {         $basePath = 'recovery/install';         $baseURL = str\_replace(basename(\_\_FILE\_\_), '', $\_SERVER['SCRIPT\_NAME']);         $baseURL = rtrim($baseURL, '/');         $installerURL = $baseURL . '/' . $basePath;         if (strpos($\_SERVER['REQUEST\_URI'], $basePath) === false) {             header('Location: ' . $installerURL);             exit;         }         header('Content-type: text/html; charset=utf-8', true, 503);         echo ' ## Error ';         echo 'Shopware 5 must be configured before use. Please run the [installer](recovery/install/?language=en).';         echo ' ## Fehler ';         echo 'Shopware 5 muss zunächst konfiguriert werden. Bitte führen Sie den [Installer](recovery/install/?language=de) aus.';     }     exit; } // check for composer autoloader if (!file\_exists('vendor/autoload.php')) {     header('Content-type: text/html; charset=utf-8', true, 503);     echo ' ## Error ';     echo 'Please execute "composer install" from the command line to install the required dependencies for Shopware 5';     echo ' ## Fehler ';     echo 'Bitte führen Sie zuerst "composer install" aus.';     return; } require \_\_DIR\_\_ . '/autoload.php'; use Shopware\Components\HttpCache\AppCache; use Shopware\Kernel; use Symfony\Component\HttpFoundation\Request; $environment = getenv('SHOPWARE\_ENV') ?: getenv('REDIRECT\_SHOPWARE\_ENV') ?: 'production'; $kernel = new Kernel($environment, $environment !== 'production'); if ($kernel-\>isHttpCacheEnabled()) {     $kernel = new AppCache($kernel, $kernel-\>getHttpCacheConfig()); } // Set commandline args as request uri // This is used for legacy cronjob routing. // e.g: /usr/bin/php shopware.php /backend/cron if (PHP\_SAPI === 'cli' && isset($\_SERVER['argv'][1])) {     $\_SERVER['REQUEST\_URI'] = $\_SERVER['argv'][1];     // We have to use a shutdown function to prevent "headers already sent" errors.     register\_shutdown\_function(function () {         echo PHP\_EOL;         echo 'WARNING: Executing shopware.php via CLI is deprecated. Please use the command line tool in bin/console instead.' . PHP\_EOL;     }); } $request = Request::createFromGlobals(); $kernel-\>handle($request)        -\>send();  

ich habe der Error gefunden und war im htaccess musste ich RewriteEngine on
RewriteBase /(der hauptordner schreiben)