1 2015-01-13 17:01:01

Topic: Page not found Error (After first install)

Hello, I get this error:

http://www.psyflex.com/home

Whenever I try to access the home page using the link above. Using the following link works though:

www.psyflex.com

I have checked that rewrite module is enabled and loaded.

Can anyone help? Thank you!

This is my .htaccess file:

#
# Monstra CMS :: php & apache settings
#

# Set default charset utf-8
AddDefaultCharset UTF-8

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# PHP 5, Apache 1 and 2.

    php_flag magic_quotes_gpc                 off
    php_flag magic_quotes_sybase              off
    php_flag register_globals                 off


# Setting rewrite rules.

    RewriteEngine on
   
    # Update code bellow for SEO improvements
    # RewriteCond %{HTTP_HOST} ^www.example.org [NC]
    # RewriteRule ^(.*)$ http://example.org/$1 [R=301,L]
   
    RewriteBase /%siteurlhere%/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php [QSA,L]
   
    # Update code bellow for SEO improvements
    # Redirect 301 /home http://example.org/

2 2015-01-13 18:21:16

Re: Page not found Error (After first install)

Hi there, welcome!

Well you get a 404 error not found, try this:

1st - Go to your admin panel and go to system settings, then choose the homepage from the pages you have created and then hit save.
2nd - On your system settings check your domain name field.
3rd - On your system settings delete temporary files and logout and then login again and try to check your page then

Let me know your results, but i guess you need to chmod your .htaccess file (maybe) since if you look at this part of the code:

# RewriteCond %{HTTP_HOST} ^www.example.org [NC]

You want there not example.org but your domain name!

Best regards wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

3 (edited by mgeorgoulopoulos 2015-01-13 19:00:50)

Re: Page not found Error (After first install)

Hi, thanks for the reply!

The problem persists. Also it's not only about "Home" page. Every link the main page has fails, apart from external website links.

Here are my settings:
http://snag.gy/UjF4X.jpg

Deleted temporary files multiple times, I even restarted apache with no luck.

What I'm suspicious of is the line:
RewriteBase /%siteurlhere%/

I tried replacing it with "RewriteBase /" since I'm at the www root, even commenting it out, but still get 404

EDIT:

Here are the permissions for the .htaccess file (whole /var/www directory actually)
http://snag.gy/KUBhN.jpg

Also I uncommented the "RewriteCond" line and put in the real url, with no luck again sad

Re: Page not found Error (After first install)

Hi there,

Ok thats strange.... Lets do this way.... Lets go to the CORE of the system and try from there then.

Using your ftp, navigate to: yourdomain.com/storage/database and download the file: ''options.table.xml''
Then open it with Notepad and on the second line you have the main settings of your system, try to check if you have them all there!

One question, do you have PHP5 on your server? do you manage your server? or that is a hosting account?

Best regards wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

5

Re: Page not found Error (After first install)

PHP 5.4.36, running on  a Debian VPS. I have full access to the machine.

The options xml looks fine as far as I can tell, here it is:


211527510b419sitenamePsyflex Interactions25fe7b20ebbkeywordsSite keywords32996da0de2descriptionSite description44056d724b8sloganSite slogan5620d3e963edefaultpagehome66c9cd389f6siteurlhttp://www.psyflex.com72db8769b1etimezoneEurope/Athens8a0b440adcelanguageen9d7bd60ad05maintenance_statusoff10c415980d92maintenance_message

Monstra :: Maintenance mode

114c4e8f0aa8theme_site_namedefault124c4e8f0aa8theme_admin_namedefault124c4e8f0aa8users_frontend_registrationtrue18f469fc791ccaptcha_installedtrue19f119fc791csystem_emailmgeorgoulopoulos@gmail.com20f119fc121cstyles_version121f119fc133cjavascript_version1

Re: Page not found Error (After first install)

Wow that seems all fine.... Damm!

Well can you restart your server then? Maybe he needs to update some permissions with your machine! Please try it wink and we go from that.

Best regards

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website

7 2015-01-14 09:38:41

Re: Page not found Error (After first install)

Nope sad a restart didn't help at all

8

Re: Page not found Error (After first install)

Ok I fixed it smile Turns out .htaccess files are ignored by apache, unless you "AllowOverride All" in the "sites-available" configuration files.

Thanks for your time!

Re: Page not found Error (After first install)

Yeah that was really good! Glad you fixed !

Best regards wink

http://monstracreative.com - themes, plugins and snippets for monstra cms

:: ATTENTION ::
Need help? Login at your account at: http://monstracreative.com/users/login. -> You have a excellent support center at our website! wink

wormsunited's Website