After changing a few settings in .htaccess files and potentially something else, I'm getting the following page every time I render my magento store/admin panel. Seems like I might have broken Apache2. Could someone suggest possible culprits here? Thanks so much in advance.
Could you share the .htaccess file to investigate?
It is difficult to say what is causing the issue without the file content.
You may try to revert to original .htaccess, if you have a backup file.
Thanks
Hey Mukesh,
Thanks for the response. This is my .htaccess file. I'm currently running locally with MAMP and am seeing the directory instead of rendering the magento store.
The magento directory is /Applications/MAMP/htdocs/magento.
Thanks again.
Hi @jensenckuo6170,
Here is the error that your store has.
In order to fix it, you'll have to locate the file Validator.php with the namespace Magento\Framework\View\Element\Template\File in your vendor dir (vendor/magento/framework/View/Element/Template/File)
and change line 138 from
$realPath = $this->fileDriver->getRealPath($path);
to
$realPath = str_replace('\\', '/', $this->fileDriver->getRealPath($path));
Make sure to clear your generated folder.
Hope this can help you! Let me know if you need further assistance.
__________
If issue solved, Click Kudos & Accept as Solution.