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
Is it safe?
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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
The redirect is fine too, although it will p*** search engines off and likely lower your search ranking
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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.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
Technically, mod_rewrite could be useful to "fudge" a workaround but it wouldn't advise it so I'm not going to explain it