Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Install to subdirectory
#1
I saw this article on Wordpress http://codex.wordpress.org/Giving_WordPr..._Directory that describes how to install it to its own directory and copy index.php and an htaccess file to the root to get it to show up there.

Can a similar thing be done with a GS installation?

If I've already installed GS in the root can I move it to a subdirectory without breaking everything?

Thanks,

-Rob A>
Reply
#2
ive often thought about figuring out how to do this as well... i dont think in it's current state that GS could do it now. In the future... yes.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#3
Yes you can. But there's a logistic problem to solve.
How do you want to access your GS instance ?
Choose, and then I'll tell you how
1) www.yourdomain.com (while GS stays in a nested directory)
2) www.yourdomain.com/GS
3) gs.yourdomain.com (using subdomain, and redirecting from www to it)

ccagle8: it's just a matter of some tricky mod rewrite rules Wink
The easiest way is to proxy streams :]
Addons: blue business theme, Online Visitors, Notepad
Reply
#4
yojoe Wrote:Choose, and then I'll tell you how
1) www.yourdomain.com (while GS stays in a nested directory)

That is what I would want. I'm already using URL rewriting to get pretty URLs to pages like www.mydomain.com/pageslug and would like that maintained if possible.

-Rob A>
Reply
#5
post me your domain address and GS directory name, and I'll provide you my magical rules Wink
Addons: blue business theme, Online Visitors, Notepad
Reply
#6
This would be great. Thanks yojoe
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#7
k, here we go with this question.
I had a similar problem some time ago, for a website I've built using different CMS.
Rules may be not 100% semantically correct, but I solved my problem, and they work well with GS.

1. place your getsimple installation files in "GetSimple" directory
2. create .htaccess in root directory and use below rewrite rules changing address of your domain accordingly
Code:
#redirect non www address to www
RewriteCond %{HTTP_HOST} ^(www.yourdomain.tld)$
RewriteRule ^(.*)$ http://www.%1%{REQUEST_URI} [R=301,L]
#access from root location to nested directory content
RewriteCond %{REQUEST_URI} !/GetSmiple/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /GetSimple/$1
RewriteCond %{HTTP_HOST} ^(www.)?www.yourdomain.tld$
RewriteRule ^(/)?$ GetSimple/ [L]

3. Change your homepage url in gs admin panel to
http://www.yourdomain.tld

If you have some files you want to access from your root directory, or even nested, comment rules redirecting from non www to www address.
Then you can access your gs instance from http://www.yourdomain.tld
and other dirs/files using http://yourdomain.tld/file.ext

Quote:That is what I would want. I'm already using URL rewriting to get pretty URLs to pages like www.mydomain.com/pageslug and would like that maintained if possible.
I can't assure above path will work. If you add an exceptions to above rules, it should work. But if you have more than couple such links, and they stop working after you use my method, then you'd have to find another solution by changing rewrite rules, or your slug creation algorithm.


ps. still didn't find a 100% working way to change admin panel path using pure rewrite rules :\
Addons: blue business theme, Online Visitors, Notepad
Reply
#8
Quote:ps. still didn't find a 100% working way to change admin panel path using pure rewrite rules :\

This is coming in the next release... it will be a GSCONFIG variable.
- Chris
Thanks for using GetSimple! - Download

Please do not email me directly for help regarding GetSimple. Please post all your questions/problems in the forum!
Reply
#9
ccagle8 Wrote:
Quote:ps. still didn't find a 100% working way to change admin panel path using pure rewrite rules :\

This is coming in the next release... it will be a GSCONFIG variable.

Hmm.. but you are going to hardcode this function.
I was trying to do it for current version w/o bulk edition of all paths to admin.
But hey, I succeeded in some % ;]

Anyway nice to know you will implement this.
(setting a default admin paths to something different than /admin, /panel, /administration, /cms and other easy to guess directories, would be a good idea)
Addons: blue business theme, Online Visitors, Notepad
Reply
#10
Any news / info about this matter...?

Btw, thanks for a great CMS!
Reply
#11
I wonder, if this now can be done.
Reply
#12
I just posted this in another thread.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#13
I think you mean

Cannot view subfolder contents in browser

Thank you! And sorry, I have overseen this thread.
Reply




Users browsing this thread: 1 Guest(s)