Changing docroot

Status
Not open for further replies.

compass paintball

New Member
Messages
8
Reaction score
0
Points
0
Could I change the docroot of compass.x10hosting.com (compasspaintball.com is parked on it currently, but not active because I haven't changed my DNS from my old host yet, as I am still waiting on a few things to finalize before I switch) from public_html to a subfolder of that without having to set up compasspaintball.com as an addon domain running on a separate subdomain with it's own docroot? That's really quite inconvenient since it uses up one of my subdomains. My publishing software is going to start having a few problems i cant really get into if I continue to use public_html (my current host uses a custom folder.) Is there a way to use another docroot besides public_html on the main domain?

Thanks.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
You could try to use mod_rewrite:

Code:
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/customFolder/
RewriteRule ^(.*)$ /customFolder/$1
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
As this is resolved, I have now closed this thread.

Feel free to contact us again in the future.
 
Status
Not open for further replies.
Top