Wednesday, August 20, 2014

Redirect subfolder outside htdocs in apache

Lets say you have a folder with path "D:\myfolder\abc" and you want the address "http://localhost/web" to redirect to this folder instead of "C:\xampp\htdocs" as usual Add these lines to "httpd.conf" (located in "C:\xampp\apache\conf\")

Alias /fyp D:\myfolder\abc
<Directory D:\myfolder\abc>
 Require all granted
 Order allow,deny
 allow from all

and restart apache

No comments:

Post a Comment