Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can i allow a new folder on the root structure?
Author Message
FRAD Offline
Junior Member

Posts: 21
Joined: Feb 2012
2012-03-05 20:54:51
How can i allow a new folder on the root structure?
Hi,

how can i allow a new folder (called: scripts) on the root of GETSIMPLE CMS folder structure?

What must i change in the .htaccess?

Code:
AddDefaultCharset UTF-8
Options -Indexes

# blocks direct access to the XML files - they hold all the data!
<Files ~ "\.xml$">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
<Files sitemap.xml>
        Order allow,deny
    Allow from all
    Satisfy All
</Files>

RewriteEngine on

# Usually it RewriteBase is just '/', but
# replace it with your subdirectory path
RewriteBase /myenergy/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
Find all posts by this user Quote this message in a reply
Connie Offline
Super Moderator

Posts: 2,719
Joined: Feb 2011
2012-03-05 22:35:48
How can i allow a new folder on the root structure?
it depends on the kind of files which you want to have there
in general you must change nothing in the general htacces

1) create the folder
2) upload what you want to have there, I assume you want to upload scripts there
3) if you can run these scripts from within a component, it is ok

if not I suggest to create a special .htaccess for that folder /scripts

if you add this folder to the /data/uploads for example it will be ok, I am sure

|--
Die deutsche GetSimple-Webseite: http://www.Get-Simple.de = the german Get-Simple-Website!
Das deutschsprachige GetSimple-(Unter-)Forum: http://get-simple.info/forums/forumdisplay.php?fid=18
Find all posts by this user Quote this message in a reply
shawn_a Offline
Developer

Posts: 2,221
Joined: Sep 2011
2012-03-06 00:11:56
How can i allow a new folder on the root structure?
You should be able to create folders anywhere. Those !-f !-d rewrite conditions mean "exclude real files and real directories from the rewrite"

Although typically if its scripts as in code for your GS site, you should copy your theme and put it the theme folder.

My alternative on my site for additional non GS content was to use GS in a subdirectory, with a rewrite to account for that. ( Its in the wiki ). Then my web root isn't full of GS assets.

NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
(This post was last modified: 2012-03-06 00:14:48 by MuhammadP.)
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)

Contact Us | GetSimple | Return to Top | Return to Content | Lite (Archive) Mode | RSS Syndication
Generate Leads from Documents vCard Hosting