g1smd - 1:32 pm on Apr 7, 2013 (gmt 0)
What do you mean by "move"?
Are you talking about "moving the physical files to a different place in the server filesystem" or are you talking about "changing the URL used for accessing the content"?
You can do one without the other by using a rewrite. If you want people to use a different URL to access the content, you should also do a redirect from the old URL to the new URL.
In detail. You can move files around on the server but keep the same URL as before by using a rewrite to connect the URL request to the actual physical file. You can set a new URL for some content whether or not you move the physical file around inside the server.
So, before talking about code, let's get a clear idea what you want to do, described in terms of "files" as used inside the server and "URLs" as used on the web.
Is the aim to have new URLs for your content? Are you wanting to tidy up the FTP view of your site by moving files around but retain the old URLs used to access the content? Do you want to move the files inside the server and have new URLs too?