开发者

Redirecting index page in wampserver

i create a site in a wampserver by creating a folder that include all site pages and named

the开发者_StackOverflow社区 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


in your httpd.conf file find DocumentRoot "C:/wamp/www"

and change it to DocumentRoot "f:/wamp/www/xxxx"


You have several possible solutions here:

  1. Reconfigure apache to use xxxx as document root
  2. Setup a redirect in your main directory to the subdirectory, i.e. via a .htaccess rewrite rule or by sending a redirection header() in the root index.php file.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜