I need help tu setup the htaccess file. I have a webiste lets say mywebsite.com and I made a subdomain called
laravel.mywebsite.com. Now in the root foolder of my C-Panel where i have a new folder for my subdmain. I want to put in this folder my laravel project without moving anything out of it. For example the file structure goes something like this: my_website/laravel.mywebsite.com/laravel_app. How to ajust the htaccess for this subdomain?
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php73” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php73 .php .php7 .phtml
# Turn Off mod_dir Redirect For Existing Directories
DirectorySlash Off
# Rewrite For Public Folder
RewriteEngine on
RewriteRule ^(.*)$ laravel-test/public/ [L]
</IfModule>
# php -- END cPanel-generated handler, do not edit
If you visit larave-test.mywebsite.com you get the Laravel landing page