View previous topic :: View next topic |
Author |
Message |
stvwrd
Joined: 31 Mar 2005
|
Posted: Mon Aug 11, 2008 12:29 am Post subject: Moving files on my web server |
|
|
Okay, basically I have to replace the website you see here: http://koreagoldentee.com/
With the website you see here: http://koreagoldentee.com/forum/index.php
I know I could just uninstall wordpress and delete all those files but I'd like to just move it all down to a sub-folder, while moving the forum up to the main folder to become the main site.
Is there a relatively painless way of doing this? Possibly just setting the forums sub-folder as the folder to show when people first come to the site?
Any ideas?
Thanks |
|
Back to top |
|
 |
ttompatz

Joined: 05 Sep 2005 Location: Kwangju, South Korea
|
Posted: Mon Aug 11, 2008 4:27 am Post subject: Re: Moving files on my web server |
|
|
stvwrd wrote: |
Okay, basically I have to replace the website you see here: http://koreagoldentee.com/
With the website you see here: http://koreagoldentee.com/forum/index.php
I know I could just uninstall wordpress and delete all those files but I'd like to just move it all down to a sub-folder, while moving the forum up to the main folder to become the main site.
Is there a relatively painless way of doing this? Possibly just setting the forums sub-folder as the folder to show when people first come to the site?
Any ideas?
Thanks |
Do you have FTP or telnet access? Do you know how to use them?
I assume the webserver is remote from your location. |
|
Back to top |
|
 |
rocklee
Joined: 04 Oct 2005 Location: Seoul
|
Posted: Mon Aug 11, 2008 5:39 am Post subject: |
|
|
There are several ways to do this :
- Ask the admin hosting your site to do it for you
- Use CPanel (or whatever administrative interface for your site) to redirect the index path to the forum directory, you just change the URL links without having to move any files
- Do you have command line access? (telnet?), use "mv (/old location) (/new location)"
- FTP
I would use the second option as its easier since you only want to redirect your default page to your forum directory instead of moving a whole bunch of files. |
|
Back to top |
|
 |
stvwrd
Joined: 31 Mar 2005
|
Posted: Mon Aug 11, 2008 5:41 am Post subject: |
|
|
Yes, yes, and yes.
However, I'm afraid if I try to do it manually I might accidentally split up the files in a way that might wreck the old version of the site.
I was really hoping there would be a way to just tell the server to start people in another directory when they come to the website.
Still, I'll log on with ftp and poke around and see what I come up with.
Thanks! |
|
Back to top |
|
 |
stvwrd
Joined: 31 Mar 2005
|
Posted: Mon Aug 11, 2008 5:42 am Post subject: |
|
|
rocklee wrote: |
There are several ways to do this :
- Ask the admin hosting your site to do it for you
- Use CPanel (or whatever administrative interface for your site) to redirect the index path to the forum directory, you just change the URL links without having to move any files
- Do you have command line access? (telnet?), use "mv (/old location) (/new location)"
- FTP
I would use the second option as its easier since you only want to redirect your default page to your forum directory instead of moving a whole bunch of files. |
I wrote my first reply before this one was posted. I'll give the cpanel method a shot first. Thanks! |
|
Back to top |
|
 |
stvwrd
Joined: 31 Mar 2005
|
Posted: Mon Aug 11, 2008 7:06 am Post subject: |
|
|
Okay, so, I couldn't find anything in the cpanel that looked like it might do what was described. There is an "Index Manager" but the description says "The Index Manager allows you to customize the way a directory will be viewed on the web. You can select between a default style, no indexes, or two types of indexing. If you do not wish for people to be able to see the files in your directory, choose no indexing."
That doesn't really sound right to me.
So, I went into FTP and just moved files around manually. Sure enough when I went back to my browser nothing worked right and I just spent the last hour putting all the pieces back together again. I think the original site is toast (the content is still there in the subdirectory I moved it all too, but the nice wordpress theme is gone). At this point I just need to get the forum site up as the main page.
How about a simple line of html in the index file of the main directory that automatically forwards people on to the correct location? Kind of a workaround, but I just wanna get it running. |
|
Back to top |
|
 |
stvwrd
Joined: 31 Mar 2005
|
Posted: Mon Aug 11, 2008 7:19 am Post subject: |
|
|
Is something like this what I need to do?:
http://www.ehow.com/how_4435453_website-domain-name-web-direct.html
"If you have a well known website and you want to change your domain name or pages and files around without losing site traffic or your Google ranking, you can do this by setting up a 301 Redirect. A 301 redirect works on servers running Apache. It's easy to implement and it should preserve your search engine rankings. It is the safest option for domain name changes, file changes, and page changes."
If so I can ask my coworker that knows a lot about databases and Apache and stuff to help me. |
|
Back to top |
|
 |
rocklee
Joined: 04 Oct 2005 Location: Seoul
|
Posted: Mon Aug 11, 2008 8:23 am Post subject: |
|
|
stvwrd wrote: |
Okay, so, I couldn't find anything in the cpanel that looked like it might do what was described. There is an "Index Manager" but the description says "The Index Manager allows you to customize the way a directory will be viewed on the web. You can select between a default style, no indexes, or two types of indexing. If you do not wish for people to be able to see the files in your directory, choose no indexing."
That doesn't really sound right to me.
So, I went into FTP and just moved files around manually. Sure enough when I went back to my browser nothing worked right and I just spent the last hour putting all the pieces back together again. I think the original site is toast (the content is still there in the subdirectory I moved it all too, but the nice wordpress theme is gone). At this point I just need to get the forum site up as the main page.
How about a simple line of html in the index file of the main directory that automatically forwards people on to the correct location? Kind of a workaround, but I just wanna get it running. |
Redirect 301 is exactly what I was referring to (301 is permanent and 302 is temporary redirection). This is command line and you can do it if you know how. CPanel is just the GUI way.
In CPanel find Redirects under Domains, this should allow you to redirect default index directories to a different location. So if your default address is "koreantee.com" then your redirect URL can be "koreantee.com/forum".
You could always do a meta redirection in your main index file at root :
<meta http-equiv="refresh" content="1;
url=http://koreantee.com/forum/">
This is if you want to preserve the index directory for an intro page or something. |
|
Back to top |
|
 |
stvwrd
Joined: 31 Mar 2005
|
Posted: Mon Aug 11, 2008 4:33 pm Post subject: |
|
|
Quote: |
In CPanel find Redirects under Domains, this should allow you to redirect default index directories to a different location. So if your default address is "koreantee.com" then your redirect URL can be "koreantee.com/forum". |
My God that was embarrasingly easy. I'm an idiot. THANKS!!!! |
|
Back to top |
|
 |
|