The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Moving entire site to subdir, preserving old links (?) - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: General Questions and Problems (http://get-simple.info/forums/forumdisplay.php?fid=16) +--- Thread: Moving entire site to subdir, preserving old links (?) (/showthread.php?tid=2375) |
Moving entire site to subdir, preserving old links (?) - zencoder - 2011-11-12 My current site (in another CMS) is located in the root. I want to move it entirely to subdir (for example "newroot"). But I want that all links from my old site, remain untouched: old link is www.mysite.com/index.html the new one after moving will be www.mysite.com/newroot/index.html. But I need that new link in new site for external world was remain in old form - www.mysite.com/index.html As I know this can be done via mod rewrite, but I don`t know what exactly must be written and in what order. Please help me to move my site to the new (internal) location and preserve (external) links to it. Moving entire site to subdir, preserving old links (?) - Connie - 2011-11-12 try like the example: http://kb.mediatemple.net/questions/85/Using+.htaccess+rewrite+rules# Cheers, Connie Moving entire site to subdir, preserving old links (?) - Ampersand - 2011-11-16 zencoder Wrote:old link is www.mysite.com/index.html the new one after moving will be www.mysite.com/newroot/index.html. But I need that new link in new site for external world was remain in old form - www.mysite.com/index.html Try using in your mysite.com folder following .htaccess content: Code: AddDefaultCharset UTF-8 also to make use of built-in GS menu (to be able to add pages to menu an then use get_navigation() in template) in custom permalinks settings set: Code: %slug%.html Please keep in mind I am not an expert and can't test the above or guarantee it works. Moving entire site to subdir, preserving old links (?) - yojoe - 2011-11-16 Simplest way to do it: 1. edit main .htaccess file, and change RewriteBase / to RewriteBase /newroot 2. move all GS file to newroot dir, leaving only .htaccess file in root directory |