Redirecting index page in wampserver
19,061
Solution 1
You have several possible solutions here:
- Reconfigure apache to use xxxx as document root
- Setup a redirect in your main directory to the subdirectory, i.e. via a
.htaccess
rewrite rule or by sending a redirectionheader()
in the rootindex.php
file.
Solution 2
in your httpd.conf
file find DocumentRoot "C:/wamp/www"
and change it to DocumentRoot "f:/wamp/www/xxxx"
Author by
Meera
Updated on June 23, 2022Comments
-
Meera almost 2 years
i create a site in a wampserver by creating a folder that include all site pages and named
the folder for example xxxx
when i run http://localhost its open the index of the wamp server
what i want is to open the index of xxxx when i run the localhoust without adding xxxx
in the path like http://localhost/xxxx
so is that possible