Good Evening,
I have set up a virtual host (below)
but when ever i go to the “backend” it just loads the main domain.
Im guessing maybe .htaccess but any help appreciate
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/public_html/backend"
ServerName backend.localhost.com
<Directory "C:/xampp/htdocs/public_html/">
Options Indexes MultiViews FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
backend .htaccess
RewriteEngine on
# If a directory or a file exists, use the request directly
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php
normal .htaccess
RewriteEngine on
# hide files and folders
RedirectMatch 404 /_protected
RedirectMatch 404 /\.git
RedirectMatch 404 /composer\.
RedirectMatch 404 /.bowerrc
# If a directory or a file exists, use the request directly
RewriteBase /
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,NE,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise forward the request to index.php
RewriteRule . index.php