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.
<IfModule mod_php5.c>
    php_flag magic_quotes_gpc                 off
    php_flag magic_quotes_sybase              off
    php_flag register_globals                 off
</IfModule>


# Setting rewrite rules.
<IfModule mod_rewrite.c>
    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/
</IfModule>

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:

<?xml version="1.0" encoding="UTF-8"?>
<root><options><autoincrement>21</autoincrement></options><fields><name/><value/></fields><options><id>1</id><uid>527510b419</uid><name>sitename</name><value>Psyflex Interactions</value></options><options><id>2</id><uid>5fe7b20ebb</uid><name>keywords</name><value>Site keywords</value></options><options><id>3</id><uid>2996da0de2</uid><name>description</name><value>Site description</value></options><options><id>4</id><uid>4056d724b8</uid><name>slogan</name><value>Site slogan</value></options><options><id>5</id><uid>620d3e963e</uid><name>defaultpage</name><value>home</value></options><options><id>6</id><uid>6c9cd389f6</uid><name>siteurl</name><value>http://www.psyflex.com</value></options><options><id>7</id><uid>2db8769b1e</uid><name>timezone</name><value>Europe/Athens</value></options><options><id>8</id><uid>a0b440adce</uid><name>language</name><value>en</value></options><options><id>9</id><uid>d7bd60ad05</uid><name>maintenance_status</name><value>off</value></options><options><id>10</id><uid>c415980d92</uid><name>maintenance_message</name><value><h1>Monstra :: Maintenance mode</h1></value></options><options><id>11</id><uid>4c4e8f0aa8</uid><name>theme_site_name</name><value>default</value></options><options><id>12</id><uid>4c4e8f0aa8</uid><name>theme_admin_name</name><value>default</value></options><options><id>12</id><uid>4c4e8f0aa8</uid><name>users_frontend_registration</name><value>true</value></options><options><id>18</id><uid>f469fc791c</uid><name>captcha_installed</name><value>true</value></options><options><id>19</id><uid>f119fc791c</uid><name>system_email</name><value>mgeorgoulopoulos@gmail.com</value></options><options><id>20</id><uid>f119fc121c</uid><name>styles_version</name><value>1</value></options><options><id>21</id><uid>f119fc133c</uid><name>javascript_version</name><value>1</value></options></root>

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