Post
by ethanmoore74 » Wed Dec 22, 2021 4:41 am
If you want to store your website files in a subdirectory but don't want the directory to show up in the URL, use the following code:
1. In your public html folder, edit the .htaccess file.
See How to Edit Your .htaccess File for more information.
2. At the beginning of your .htaccess file, add the following code, substituting example.com and directory with your information.
3. Make a backup
Your website files will be provided from your subdirectory when you visit your domain.