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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.