GetSimple Support Forum

Full Version: New page is 404 Not Found
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm trying to create my first page.

Install required /data and /backup to have permissions at 777 (755 didn't work).
I then switched them back to 755.

On my first attempt at Saving a new page I got the error:
"Error: The requested page does not exist"

DEBUG mode showed a "file_put_contents: Failed to open stream" error.

chmod -R 755 /admin
followed by
chown -R www-data:www-data <entire site>
Solved that.

Now I seem to be able to create a new page --
it shows up on   /admin/pages.php
and I can reach it's edit page   /admin/edit.php?id=contact

However, trying to view the pages gives a 404 Not Found error.



Platform: Turnkey core 14 Debian 8 LAMP
Host: Local Virtualbox Virtual Machine
GS version: 3.3.7
Added plugin: cbcontact_form.php (Disabled)
I've just noticed that the 404 errors say:
Quote:Not Found
The requested URL /TEST/test2/ was not found on this server.

My website is in a sub-folder below the web root,
ie it's in
/var/www/TEST/
rather than
/var/www/

The error message seems to be referring to a relative URL. I've read about GS using only absolute URLs so maybe this is the problem. No idea how to fix it though...

I've tried cloning the original (Welcome to GetSimple!) index page which I can view, but the resulting new page is still 404.
Hi alanq,
Do you have fancy url enabled?. If you disabled fancy url do you have the same error?

Regards.
Your site url or htaccess root is probably wrong
Thank you cumbe and shawn_a

Disabling fancy URLs in Settings solved the problem -- I can now view the new pages.

But, I would like fancy URLs.

Apache module mod_rewrite is enabled.

And this is the mod_rewrite section of my top-level (/TEST/) .htaccess file...
Code:
# handle rewrites for fancy urls
<IfModule mod_rewrite.c>
       RewriteEngine on

       # Usually RewriteBase is just '/', but
       # replace it with your subdirectory path
       RewriteBase /TEST/

       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule /?([A-Za-z0-9_-]+)/?$ index.php?id=$1 [QSA,L]
</IfModule>
...which looks fine to me ...