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

Where to put files? | Forum

Topic location: Forum home » Support » General Questions
Stig
Stig Sep 5 '14
Hello where to put files so they can be found?

I uploaded to my root but its not found.

Eg webmaster tools authenticate file.
Or any file!??
Stig
Stig Sep 5 '14
Thanks Chris. But that wouldn't be on the actual root of the site then though would it?
It would be in whateverfoldername/file instead of site.com/file

Sorry, I should have said, how to put files on the root of the site so site.com/file.

Thanks for your time and help.
Stig
Stig Sep 5 '14
I managed to get the new directory showing but I need it to be on the root
Eg http://randomers.club/...0593a71e8f7627b.html
needs to be http://randomers.club/c2abdaefe2a4572990593a71e8f7627b.html

How to do that?

Thanks!
tammy harris
tammy harris Sep 5 '14
RewriteCond %{REQUEST_URI} !^/c2abdaefe2a4572990593a71e8f7627b.html
tammy harris
tammy harris Sep 6 '14
yes put the file c2abdaefe2a4572990593a71e8f7627b.html
in the oxwall directory the put the rewrite rule in htacess
tammy harris
tammy harris Sep 6 '14
most filecan be in a folder and only have rewrite that folder 
Stig
Stig Sep 7 '14
Yes. I need to put a file in the root of the site. Why is it a major security issue to put files in the root of the site and why is it so complicated to do so!?

That doesn't work Tammy
http://randomers.club/c2abdaefe2a4572990593a71e8f7627b.html

To verify you are the owner of randomers.club, you will need the ability to have the ability to upload a file to the site. If you need assistance with this, please contact your hosting provider. Download This File
Upload the file so it is located at: http://www.randomers.club/c2abdaefe2a4572990593a71e8f7627b.html

How to do that?




ross Team
ross Sep 8 '14
please try this RewriteCond %{REQUEST_URI} ^/$

RewriteRule (.*) index.html [L]


instead index.html your file

Daisy Team
Daisy Sep 8 '14
Stig, let me explain how it works. Our routing system works with the conditions and rules described in our .htaccess file. These rules tell the system to forward the request to the index.php file if somebody requests any site page. If you uploaded file which does not obey our routing system, you should add an exception in the .htaccess file, so if someone requests the uploaded file - system would not forward the request to the index.php file. The rule you should use to add the exception is:

RewriteCond %{REQUEST_URI} !^/c2abdaefe2a4572990593a71e8f7627b\.html

This condition should be added at the top of the conditions list in .htaccess file.

You will need to add additional rules for each specific file. This is how our routing system works and there is no possibility to write one rule for all files.