We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Adding custom files and folders in your Oxwall directory - htaccess helpfull guide | Forum

dave Leader
dave Apr 22 '16

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 "\.(css.gz|css.gzip)$">

  ForceType text/css



**(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 :)

The Forum post is edited by dave Jun 22 '20
dave Leader
dave Apr 22 '16
Oxwall maybe this could be a sticky :)
Oxwall Germany Club
Oxwall Germany Aug 17 '18
Topic was moved from General Chat.
Berlin Dec 1 '21
How to fix connections to bluetooth audio devices and wireless displays in windows 10 http://fixwindows10connections.com thanks for the share this post.
Andriana Gor
Andriana Gor Jan 15

 I would like to recommend the site. You may have noticed that your HP printer doesn't respond to commands or stops working in the middle of an important job.

If you're looking for HP TopShot LaserJet Pro drivers, you can find them here https://hpdriverprinters.net/ for all operating systems.

The Forum post is edited by Andriana Gor Jan 29
avii Jan 18

I all that isolated getting something reliable and new in each post of yours that is the clarification I love wandering your page. I'm appreciative a ton and affirmation the significance of coming


avii Jan 18

I genuinely thank you for the genuine records in this famous test and rely upon extra astonishing posts. Appreciate for looking at this grandness article with me. I'm concerning it on an astoundingly fundamental level! Expecting another amazing article. Best of right fortune to the producer


avii Jan 18

I like your set up and all you degree with us is goliath and astoundingly overall central. I can almost have to bookmark the site page so I can come truly here again to get you, as you have respected.





Alice Robinson
While a service was writing a paper for me on open source social networking platforms, I came across oxwall on the way of my research. I came to learn that it is super flexible and easy to use. Softaculous also has a theme that I'm thinking to explore. Can anyone recommend any related helpful tutorial?