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

Cant sign into Oxwall website and get 404 everywhere except homepage[Solved] | Forum

Tristan
Tristan Jun 5 '14
I honestly do not know how or why this started but i went on my website www.trenderlife.com and went to sign in but the bar shows up saying "error" so i cant sign into my admin account. Also if i try to go to other pages they all come out as 404 errors. Help would be much appreciated in this problem.
The Forum post is edited by ross Jun 8 '14
ross Team
ross Jun 5 '14
Tristan, please check whether you have .htaccess file. If yes, please paste it content here. 
Tristan
Tristan Jun 6 '14
Yeah my ht.access file is in there here is what it says.



Options +FollowSymLinksRewriteEngine On
AddEncoding gzip .gzAddEncoding gzip .gzip<FilesMatch "\.(js.gz|js.gzip)$">  ForceType text/javascript</FilesMatch><FilesMatch "\.(css.gz|css.gzip)$">  ForceType text/css</FilesMatch>


The Forum post is edited by Tristan Jun 6 '14
ross Team
ross Jun 6 '14
it shoud look like this: 


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>

#RewriteCond %{THE_REQUEST} ^.*/index.html


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} (/|\.php|\html\.htm|\.xml|\.feed|robots\.txt|\.raw|/[^.]*)$  [NC]


RewriteRule (.*) index.php


at least, the default .htaccess file. 


Please paste it instead of current content and check if the error with 404 page not found still persists. 

Tristan
Tristan Jun 6 '14
Yeah that fixed it. Thank you. Its odd how things like that randomly change :)
ross Team
ross Jun 8 '14
Great! I'm going to mark this post as Solved. 
Syazwan
Syazwan Jun 14 '14
I need help , I also face same like this , already try but don't understand and not working out , please someone help me.
The Forum post is edited by Syazwan Jun 14 '14
Tristan
Tristan Jun 14 '14
Have you tried placing that code inside the .htaccess file ?


ross Team
ross Jun 15 '14
Make sure you have .htaccess in the root of the software, if yes can you please paste it's content here. 
ross Team
ross Aug 21 '14
Make sure you have mod_rewrite module installed on your server. 
danp
danp Aug 21 '14
I have the same issue on a fresh 1.7 localhost installation. The .htaccess is the default one (as written above) and placed in the root folder. All static files access returns the 404.

Ex.: http://localhost/...ow.css?53eb39f1ed131 404 (Not Found)

Even the installation process suffers of the same static access problem, it was all without style.
Exasperated I gave 777 access rights to everything, but no way.

It's my first attempt to Oxwall, and I'm locked here. Any suggestion?

Thanks
ross Team
ross Aug 21 '14
See my reply above
danp
danp Aug 21 '14

Quote from ross See my reply above

If you intend of mod_rewrite, it is installed and loaded:

apache2ctl -t -D DUMP_MODULES
Loaded Modules:
...
rewrite_module (shared)
...

I'm running Lubuntu 14.04

Thank you
ross Team
ross Aug 21 '14
can you paste here you config.php file please?
danp
danp Aug 21 '14

Quote from ross can you paste here you config.php file please?

Here it is:
<?php
 
define('OW_URL_HOME', 'http://localhost/index.php/');
 
define('OW_DB_HOST', 'localhost');
define('OW_DB_PORT', "3307");
define('OW_DB_USER', 'root');
define('OW_DB_PASSWORD', '...');
define('OW_DB_NAME', 'pranza');
 
define('OW_DB_PREFIX', 'ow_');
 
define('OW_DIR_USERFILES', OW_DIR_ROOT.'ow_userfiles'.DS);
define('OW_DIR_STATIC', OW_DIR_ROOT.'ow_static'.DS);
define('OW_URL_STATIC', OW_URL_HOME.'ow_static/');
define('OW_URL_USERFILES', OW_URL_HOME.'ow_userfiles/');
define('OW_DIR_PLUGINFILES', OW_DIR_ROOT.'ow_pluginfiles/');
 
define('OW_PASSWORD_SALT', '53eb392cc2338');
 
define('OW_DIR_CORE', OW_DIR_ROOT.'ow_core'.DS);
define('OW_DIR_INC', OW_DIR_ROOT.'ow_includes'.DS);
define('OW_DIR_LIB', OW_DIR_ROOT.'ow_libraries'.DS);
define('OW_DIR_UTIL', OW_DIR_ROOT.'ow_utilities'.DS);
define('OW_DIR_PLUGIN', OW_DIR_ROOT.'ow_plugins'.DS);
define('OW_DIR_THEME', OW_DIR_ROOT.'ow_themes'.DS);
define('OW_DIR_SYSTEM_PLUGIN', OW_DIR_ROOT.'ow_system_plugins'.DS);
define('OW_DIR_SMARTY', OW_DIR_ROOT.'ow_smarty'.DS);
 
define('OW_USE_CLOUDFILES', false);
 
if ( defined('OW_CRON') )
{
    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
}
else
{
    /**
    * Make changes in this block if you want to enable DEV mode and DEBUG mode
    */
 
    define('OW_DEBUG_MODE', false);
    define('OW_DEV_MODE', false);
    define('OW_PROFILER_ENABLE', false);
}
ross Team
ross Aug 21 '14
 this line: define('OW_URL_HOME', 'http://localhost/index.php/');  it should be just http://localhost/
danp
danp Aug 21 '14

Quote from ross  this line: define('OW_URL_HOME', 'http://localhost/index.php/');  it should be just http://localhost/
That resolved the issue!
Pay attention, it was generated by the installation process, I didn't make any change.

Thank you very much,
Dan
ross Team
ross Aug 21 '14
what OS and server do you have? LAMP?WAMP?XAMPP? what version of stack?
danp
danp Aug 21 '14

Quote from danp
Quote from ross  this line: define('OW_URL_HOME', 'http://localhost/index.php/');  it should be just http://localhost/
That resolved the issue!
Pay attention, it was generated by the installation process, I didn't make any change.

Thank you very much,
Dan

Unfortunately this solved the static content load, but any other link on the page (previously worked) goes wrong:

Ex.: The requested URL /join was not found on this server.
danp
danp Aug 21 '14
I'm running Lubuntu 14.04, 3.13.0-34-generic #60-Ubuntu SMP Wed Aug 13 15:45:27 UTC 2014 x86_64
Installed stack by "sudo apt-get install lamp-server^"
Apache 2.4.7, PHP 5.5.9
Pages: 1 2 »