Redirecting an index page in wampserver

I create a site on the wampserver server by creating a folder containing all the pages of the site and naming it

folder e.g. xxxx

when I run http: // localhost it opens the Wamp server index

I want to open the xxxx index when I run localhoust without adding xxxx

in the path, for example http: // localhost / xxxx

so maybe

+5
source share
2 answers

Here you have several possible solutions:

  • Reconfigure apache to use xxxx as the root document
  • , .. .htaccess header() index.php.
+3

httpd.conf DocumentRoot "C:/wamp/www"

DocumentRoot "f:/wamp/www/xxxx"

+3

All Articles