Hey all,
I had my cms at the root of my web directory (domain.com) and now I moved it to a cms folder (domain.com/cms). How can I "tell" the webserver that the default page is index.php in the cms folder (i.e. default directory = domain.com/cms and default file=index.php)?
Furthermore, is it possible to redirect requests like:
domain.com/index.php?page=home
to
domain.com/cms/index.php?page=home
For people who bookmarked links?
Thanks!
Redirect
Re: Redirect
After moving the installation to a folder, you should change all references in the config.php file to point to the new folder:
Also, you should edit the .htaccess file to suit the new path:
As for your second question.
In the .htaccess you can redirect your pages to the new url:
Code: Select all
$config['root_url']
$config['root_path']
$config['previews_path']
$config['uploads_path']
$config['image_uploads_path']
Code: Select all
#Sub-dir e.g: /cmsms
RewriteBase /cms
In the .htaccess you can redirect your pages to the new url:
Code: Select all
RewriteRule ^index.php?page=home?$ http://www.domain.com/cms/index.php?page=home [R=301,L]
Make your community a better place!