I want so that when im in http://localhost/example/category it allows me to have a subdomain that is dynamic like user1.localhost/example/category, user2.localhost/example/category, user3.localhost/example/category etc…
I got it working with the index from localhost but i want it to work when its in the category webpage and only in that webpage I would appreciate if someone could help me underneath is what i tried to do
httpd-vhosts.conf
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "C:/wamp64/www"
ServerName localhost
ServerAlias *.localhost
ErrorLog "logs/localhost-error.log"
CustomLog "logs/localhost-access.log" common
<Directory "C:/wamp64/www">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
hosts
127.0.0.1 localhost
127.0.0.1 *.localhost
::1 localhost
jamazzz is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.