User can directly access the theme directory
opened this issue · comments
- Themosis Version: dev-main
- WordPress Version: 6.1
- PHP Version: 8.0
Description
A user can access the directory of the active template, where a 500 error is returned.
Example:
http://domain.test/content/themes/website/index.php
How can I make it return to the main url?
Note: I use the dev-main branch as it allows me to work with laravel 8
Steps to reproduce
Enter the url of the active template
Example:
http://domain.test/content/themes/website/index.php
Expected behavior
That when you enter that url directly, you are redirected to the main url