Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

webpages file not found error?

BlaeceAelf
2008-08-15
2013-05-20
  • BlaeceAelf
    BlaeceAelf
    2008-08-15

    I'm running version 1.5.2 of phpwebsite with webpages installed.  If I create a page and set it as the front page, it shows up there.  If I create a page and attempt to view it otherwise (using the view button, or adding it to the menu and viewing from there), I get a page not found.  The url provided by view is http://url.com/webpage/3 (the number obviously varies based upon the page created).  I am recieving a page not found in my error log:

    [Fri Aug 15 10:55:51 2008] [error] [client xxx.xxx.xxx.xxx] File does not exist: /var/www/xxx.xxxxxxxx.com/webpage

    Any ideas as to how to fix this would be greatly appreciated.

     
    • BlaeceAelf
      BlaeceAelf
      2008-08-16

      Well, I figured out the issue.  If anyone else runs across this issue, goto your website directory /config/core/ and edit your config.php file.  Change the

      define('MOD_REWRITE_ENABLED', TRUE);

      line to

      define('MOD_REWRITE_ENABLED', FALSE);

      or if you want, you can setup .htaccess and enable the mod_rewrite module in apache and do it that way.  As a note, if you run across this issue, and resolve it with the above method, you will need to recreate any webpages you have already built as they are tagged with the mod_rewrite URL instead of the full URL (if you start with mod_rewrite disabled in apache and in the config.php file and change it the other way, the same requirement will apply).

      Well, I hope this helps someone else out.

      --BlaeceAelf

       
  • boxcarp
    boxcarp
    2011-12-23

    Thanks for this info.
    If you want to enable mod_rewrite in htaccess here is code:

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^.*$ index.php

     
  • sarah22
    sarah22
    2012-12-20

    Hi blaeceaelf , i am facing the same problem in my website from two days ago.
    Thanks for stating this thread it help me a lot.
    _______________________________________________________________________________________
    You can found best kind of latest online gambling casinos on these links , play free latest gambling casinos here. Enjoy playing latest casino bonuses.