Webroot Subfolder
  • Where is the subfolder for the newscoop webroot. I want to place a file in www.example.com/file but can't seem to find it.

    Any help would be appreciated.
  • 2 Comments sorted by
  • Hi Jarrett!

    I think you sould edit one of the .tpl files, and insert the code there.

    Maybe some more details, what you want to do.

    (Sorry, I'm just an average user.)
  • In your .htaccess file, you have a rule that looks like this: 

        RewriteCond %{REQUEST_URI} !\.php$
        RewriteCond %{REQUEST_URI} !\.html$
        RewriteCond %{REQUEST_URI} !\.css$
        RewriteCond %{REQUEST_URI} !\.js$
        RewriteCond %{REQUEST_URI} !\.ico$
        RewriteCond %{REQUEST_URI} !/+admin
        RewriteCond %{REQUEST_URI} !/+install
        RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+js
        RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+css
        RewriteCond %{REQUEST_URI} !(/+plugins/[^/]*)?/+images
        RewriteCond %{REQUEST_URI} !/+themes
        RewriteCond %{REQUEST_URI} !/public/+videos
        RewriteCond %{REQUEST_URI} !/public/+pdf
        RewriteCond %{REQUEST_URI} !/+images/+cache
        RewriteRule . index.php [L]

    It means that any url that matches those expressions (the ! means not) automatically goes to Newscoop. You need to add an exception in that rule for your file. Something like this: 
        RewriteCond %{REQUEST_URI} !/+file$
    Put the new line anywhere with the other RewriteCond lines before that RewriteRule.