Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Installing CMS Files in Subfolder - Still run at root
#4
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
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply


Messages In This Thread
RE: Installing CMS Files in Subfolder - Still run at root - by shawn_a - 2015-01-10, 01:54:08



Users browsing this thread: 1 Guest(s)