GetSimple Support Forum
Installing CMS Files in Subfolder - Still run at root - Printable Version

+- GetSimple Support Forum (http://get-simple.info/forums)
+-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3)
+--- Forum: Installation & Setup (http://get-simple.info/forums/forumdisplay.php?fid=5)
+--- Thread: Installing CMS Files in Subfolder - Still run at root (/showthread.php?tid=7016)



Installing CMS Files in Subfolder - Still run at root - heisenberg_ice - 2015-01-08

Hello...

Is there a way to install the GetSimple CMS in a subfolder (lets say /cms/) and then move the index.php up to the root level to run as normal? This can be done with Wordpress. Trying to figure out how to do it with GetSimple.

I have some things running in other subfolders that I need to keep for legacy purposes, and I'm just trying to keep folder structure clean to prevent any issues.

Thanks


RE: Installing CMS Files in Subfolder - Still run at root - shawn_a - 2015-01-08

Use an htacess with a rewrite.
There are posts somewhere on this


RE: Installing CMS Files in Subfolder - Still run at root - datiswous - 2015-01-09

I'm not entirally sure what you mean, but I think the info is in the wiki:
http://get-simple.info/wiki/config:htaccess


RE: Installing CMS Files in Subfolder - Still run at root - shawn_a - 2015-01-10

I use 2 htaccess files

so for
/getsimple/

I have

one in root
Code:
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ /getsimple/index.php?id=$1 [QSA,L]

and the default in getsimple
with the rewrite urls modified to add the subfolder to all rules
and any blog or special ones you have as well
Code:
RewriteRule /?([A-Za-z0-9_-]+)/?$ /getsimple/index.php?id=$1 [QSA,L]

of course you can probably also just move the htaccess up to root, and change add the subfolder also, but i usually keep the 2 just cause i have other rules in each of them for different things, external to gs.


make sure you remove the subfolder from your siteurl in settings also