Is it safe?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
someday
Forum Newbie
Posts: 4
Joined: Thu May 25, 2006 8:23 pm

Is it safe?

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
someday
Forum Newbie
Posts: 4
Joined: Thu May 25, 2006 8:23 pm

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 ;)
someday
Forum Newbie
Posts: 4
Joined: Thu May 25, 2006 8:23 pm

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :)
someday
Forum Newbie
Posts: 4
Joined: Thu May 25, 2006 8:23 pm

Post 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
Post Reply