Jump to content

Need Help: Can't specify Document Root


diabloverde

Recommended Posts

I have a Godaddy Shared hosting account using Linux / Apache server 1.3.  I have created the following directory structure for a subdomain:

/Primary Domain Document Root/Subdomain/Public_html/index.php

/Primary Domain Document Root/Subdomain/Public_html/php.ini

/Primary Domain Document Root/Subdomain/Public_html/css/

/Primary Domain Document Root/Subdomain/Public_html/javascript/

/Primary Domain Document Root/Subdomain/PHP_INCLUDES    (to protect includes from showing unparsed in the event of a freak accident)

/Primary Domain Document Root/Subdomain/.htaccess

 

when I type in http://www.Subdomain.com  it directs to the /Primary Domain Document Root/Subdomain/ directory. I don't have access to the Root configuration file since it is shared hosting. I can only modify .htaccess and php.ini. Can someone tell me how to get the the http://www.Subdomain.com request to redirect to the /Primary Domain Document Root/Subdomain/Public_html/ directory using .htaccess and/or php.ini?

 

I tried using DocumentRoot=".:/Primary Domain Document Root/Subdomain/Public_html" in the .htacess file of the Subdomain directory before I read that it can only be done the root configuration file.

 

If you can help, I will make an offering to the PHP Gods on your behalf (by proxy). And yes I am a noob, though I'd like to think an intermediate one.

Link to comment
https://forums.phpfreaks.com/topic/135729-need-help-cant-specify-document-root/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.