Page 1 of 1

Is it safe?

Posted: Thu May 25, 2006 8:29 pm
by someday
Hi,
this is my first post... please be patient, i'm a newbee, and my programming skills are all but good.
I have a question
Is it safe to put a whole site in a folder (instead of putting it in the root level) and having as only file in the root the index?
The index in the root level would simply redirect to the index inside the folder (without pause, a straight redirect)
I find myself in this situation because i had a site in the root level, and while running it i created another in a folder. Now i deleted everything but that folder because the previous site was craked by somebody, and anyway the new site was ready. The old one was a MX site with phpbb. The new site is based on php nuke.
Thanks

Fred

Posted: Thu May 25, 2006 11:12 pm
by RobertGonzalez
Putting things in a subfolder is about as safe as putting it in the root folder. Unless you change permissions on the subfolder, but I can't see why you would subfolder your site and have only a single page on the root.

Posted: Fri May 26, 2006 4:43 am
by someday
just because i'm not able to change the relativities.
And what about having an index page with just link command? is it safe?
Thanks

Posted: Fri May 26, 2006 6:59 am
by Chris Corbyn
Running the site from http://www.yoursite.com is the same as running it from http://www.yoursite.com/new/ in terms of safety.

The redirect is fine too, although it will p*** search engines off and likely lower your search ranking ;)

Posted: Fri May 26, 2006 5:58 pm
by someday
So putting metadata in the index page will not be the same as having the full site in the root?
So the question: What about moving the site from the folder to the root? Will i only have to change some config or will i risk to damage the whole thing?
Thanks

Posted: Fri May 26, 2006 7:30 pm
by Chris Corbyn
someday wrote:So putting metadata in the index page will not be the same as having the full site in the root?
So the question: What about moving the site from the folder to the root? Will i only have to change some config or will i risk to damage the whole thing?
Thanks
Providing you defined the paths to images, stylesheets and javascript files as relative paths it should "just work" if you move the lot. If you've written the name of the actual subdirectory in all of these paths you're going to need to go through the files removing this.

Technically, mod_rewrite could be useful to "fudge" a workaround but it wouldn't advise it so I'm not going to explain it :)

Posted: Fri May 26, 2006 8:22 pm
by someday
thanks
I think i will begin by letting the site in the folder and using some metadata, hoping that it will remain in Google's Rank n. 2 8O