Is it possible to change the root directory?

Status
Not open for further replies.

onemind

New Member
Messages
3
Reaction score
0
Points
0
Hello,

I have created a php site using the zend framework and because of my application stucture i need to set the root to one of my own files instead of the current home directory.

Is it possible to do this?

Any help would be greatly appreciated.

Cheers
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
So what do you need changed?

You own everything in your home directory.
 

onemind

New Member
Messages
3
Reaction score
0
Points
0
??

What do you mean?

For example, if I put an index.php file in my root and type my url in to the browser my index page shows up. However, if I put the index.php file inside a folder then put the folder in root then go type my url in, i get a list of files and my index page does not show up and i have to navigate to it first.

So basically i want the file that index.php to be root and not the next level up.

Sorry, if i am explaining this in a convoluted way :p

root
index.php

to

root
folder <-- set this to root
index.php
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Oh, I'm not sure if we can do that.
 

Corey

I Break Things
Staff member
Messages
34,551
Reaction score
204
Points
63
You'd have to use either a .htaccess redirect to the folder or use mod_rewrite. I believe there are a bunch of threads on this, do a search of the forums and see what comes up.

-Corey
 

Derek

Community Support Force
Community Support
Messages
12,882
Reaction score
186
Points
63
Just redirect it like I do with my forum.
 
Status
Not open for further replies.
Top