GetSimple Support Forum

Full Version: Installing CMS Files in Subfolder - Still run at root
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

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.

Use an htacess with a rewrite.
There are posts somewhere on this
I'm not entirally sure what you mean, but I think the info is in the wiki:
I use 2 htaccess files

so for

I have

one in root
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
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