Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change docroot using .htaccess??

Status
Not open for further replies.

Mrtechno

Technical User
Nov 6, 2002
75
NZ
Hi guys,
I was just wondering if you could help me out with this one. I would like to edit the docroot path using the .htaccess file as I don't have admin rights on the web server and can't acces the httpd.conf file.

Any idea how this can be done?

Thanks.
 
There is no way you can make something like that work. When a request comes into apache, it resolves the request by matching the request with ServerName. If htaccess is enabled, it will read the .htaccess file in that vhost's DocumentRoot. The only thing you can do is redirect to another sub-directory under your root directory (DocumentRoot).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top