Some of us have Oxwall as are public_html root site and some of us have it as a subdomain, or addon domain. But regardless of your set up we all may want to add files or folders to your Oxwall directory from time to time. Here is how.
As a security measure Oxwall will use the files it has assigned in the root of the install. What that means is that if you look in the root install, Oxwall in simple terms is aware of those files listed which came with Oxwall.
Now lets say for example that you want to add a subfolder to the root named mystuff for whatever purpose. You need to tell Oxwall that it is OK to access the subfolder mystuff or you will get an error.
Lets say that you want to add a file to the new folder named mystuff/mystuff.txt which is a text file. You also need to tell Oxwall that is OK to access that file.
Let say that you want to add a addon or subdomain mystuff.com you also need to tell Oxwall that it is OK to access that.
how you do that is like this..
If you open your htaccess you will see several parts.
the top part (as i call it because i see it as two sections basically to make it easy for me)
Options +FollowSymLinks
RewriteEngine On
AddEncoding gzip .gz
AddEncoding gzip .gzip
<FilesMatch "\.(js.gz|js.gzip)$">
ForceType text/javascript
</FilesMatch>
<FilesMatch "\.(css.gz|css.gzip)$">
ForceType text/css
</FilesMatch>
**(everyone remember this area right here for later, important)
and the bottom part
RewriteCond %{REQUEST_URI} !^/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/index\.php
RewriteCond %{REQUEST_URI} !/ow_updates/
RewriteCond %{REQUEST_URI} !/ow_cron/run\.php
RewriteCond %{REQUEST_URI} !/e500\.php
RewriteCond %{REQUEST_URI} !/captcha\.php
#RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} (/|\.php|\.html|\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
and that is the basic default htaccess layout
Now if you want to add domain, sub domains, folders, or files then this is how you tell Oxwall it is OK.
where you see the **(everyone remember this area right here for later, important)
make you a custom block like so
# custom stuff
# end custom stuff
you are going to put your custom stuff between those two comments so you can keep it simple to view.
you add this section between those comments and should look like this
#custom stuff
#added to access custom files - sub domains or special folders
#--------
#subdomains and add on domains
#RewriteCond %{HTTP_HOST} !sub_addondomain.com$
#
# folders
#RewriteCond %{REQUEST_URI} !/folder1/
#RewriteCond %{REQUEST_URI} !/folder2/
#
# files
#RewriteCond %{REQUEST_URI} !/file1.html
#RewriteCond %{REQUEST_URI} !/file2.jpg
#RewriteCond %{REQUEST_URI} !/file3.txt
#end custom stuff
the # sign tells htaccess that everything after that on the same line is a comment and it will ignore it.
i gave the names generic names for examples but you can add as many of those statements in those particular sections as you need to. Just remove the comment char # from the front to make that line active.
So if you add that section in between the first and second section you can tell Oxwall what is OK to use.
Now on the other hand..
If i want to add a new page called mynewpage to my oxwall site, then none of this matters unless your using data from a new domain/folder/file. All you have to do is go to admin and go to pages and add the page.
I hope that helps.
Dave :)