Comments (21)
I came to ask about this too. I have just installed Batflat to try it out and after I log in I just get a 404, looked at the files and see there is only index and htaccess. Am I missing something simple? Thanks!
from batflat.
I think that you have an issue with mod_rewirte. Do you have Apache?
from batflat.
Yes. I am using the Apache/2.4.10 (Win32) OpenSSL/1.0.1h PHP/5.5.15
from batflat.
I didn't have https:// added so added that in, but still getting 404. I am not that great with php, so there is a good chance I am missing something here!
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^ index.php [L] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://xxxxxxxxxxxxxxxxxxxx/$1 [R=301,L] </IfModule>
from batflat.
@piotr-placzek @wilburforce83 do you have mod_rewrite enabled?
from batflat.
@piotr-placzek thanks for the quick reply, and sorry for my ignorance, I am still learning! I am hosting on a subdomain on Site Ground. They say that to enable mod_rewrite it needs to go in the .htaccess of the website.
https://www.siteground.com/kb/how_can_i_enable_modrewrite_module/
I have added this to the .htaccess in the /admin folder. Should it go in the subdomain .htaccess instead, or maybe even in the main domain /public_html/.htaccess?
i.e.
/public_html/.htaccess
/public_html/subdomain/.htaccess
/public_html/subdomain/admin/.htaccess
Many thanks for your help!
from batflat.
RewriteEngine On
is already set in .htaccess file.
from batflat.
My mistake.
The rewrite_module was turned off.
However, now after giving login and password (admin / admin) in response I get a blank page (without any source code at all).
http://localhost/batflat-master/admin/dashboard/main?t=b88be7f58de0
from batflat.
Update PHP to 5.6 or 7 ;)
from batflat.
Okay, I have resolved mostly! I now have a 500 error on HTTPS, HTTP works fine, though I think I can fix that myself :) many thanks!!
from batflat.
@wilburforce83 enable "DEV_MODE" in inc/core/defines.php
and check for errors.
from batflat.
@klocus Thanks, I have enable DEV_MODE to true. is there log somewhere? can't find anything obvious, thanks again for your help!
from batflat.
You should get some error instead of 500 page. Or maybe it's because of .htaccess protection. Try remove
# Prevent directory listings
Options -Indexes
# Prevent visitors from viewing files directly
<Files "\.(sdb|md|html|txt)$">
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</Files>
from this file and check if that is working.
from batflat.
Okay, so if I manually remove the "s" everything works with no 500 errors, so it is all https:// related.
Removing the above code didn't do anything, is the https thing a simple fix that I'm missing?
from batflat.
Please use default Batlfat's .htaccess file. If you want use SSL, add
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
after Options -Indexes
from batflat.
@klocus thanks for this! I have done the changes but it hasn't done anyhting. However, I am on a subdomain, so sdo I need to write something different here:
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
To reflect that it is a subdomain?
from batflat.
It doesn't matter if you are on subdomain.
from batflat.
Thank you, I didn't think it would. I just can't get it to do anyhting other than home page in https:// everyhting works fine in HTTP:// but I need it secure.
This is what I have:
from batflat.
# Prevent directory listings
Options -Indexes
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Prevent visitors from viewing files directly
<FilesMatch "\.(sdb\|html\|txt)$">
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
Satisfy All
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>
# URL rewrites
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(inc/\|themes/\|tmp/).*\.(php\|html)$ - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
</IfModule>
from batflat.
I just reinstalled Apache and updated everything. I changed the control panel from UwAmp to Xampp. And everything is ok. Thanks for your help and patience.
from batflat.
@klocus Thank you so much for all your help, but it still isn't working. I am wondering whether there is a problem with my host or something? I think I might just give up for the time being :(
from batflat.
Related Issues (20)
- Error 403 Forbidden Access to this resource on the server is denied!
- Integré le blog sur la page d'accueil
- Arbitrary code execution on the backend
- Summernote Image Upload
- Blog et idées
- Replacing Blog module URL
- error 403 przy próbie wysłania formularza
- 403 error when I want to send form HOT 1
- langSwitcher does not change in blogpost
- Form isn´t Spam-Safe
- Two problems Deprecated: str_replace(): & 404 not found in localhost HOT 1
- Batflat Statistics: Countries
- sign up and blog
- Missing WYSIWYG editor from post creation
- How do I include an Subpage in my footer? HOT 8
- Problems with Batflat 1.3.6 on localhost and on commercial server
- how add category in blog
- Stored XSS in module page using description field
- Sad that this project is dead - Do you need a maintainer? HOT 2
- A remote code execution vulnerability
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from batflat.