Want more timely Centmin Mod News Updates?
Become a Member

PHPVibe VideoCMS 404

Discussion in 'Blogs & CMS usage' started by Qu Don, Jun 13, 2018.

  1. Qu Don

    Qu Don Member

    47
    5
    8
    Aug 21, 2017
    Brooklyn, New York
    Ratings:
    +9
    Local Time:
    3:56 PM
    I would really appreciate any kind of help. I am getting a 404 Not found when I try to access any other link apart from the homepage.

    I deleted the .htaccess file but this is what it contains
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/?$ index.php [L]
    </IfModule>
    <ifModule mod_headers.c>
        Header set Access-Control-Allow-Origin: *
    </ifModule>
    I have not tampered with the default Centmin Nginx settings because I have no clue what I'd be doing. I contacted the 'developer' who admitted he has only used Apache but said one client said;
    Code:
    # nginx configuration
    
    location / {
      if (!-e $request_filename){
        rewrite ^/(.*)/?$ /index.php break;
      }
    }
     
  2. eva2000

    eva2000 Administrator Staff Member

    36,919
    8,074
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,438
    Local Time:
    6:56 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    wordpress uses this nginx rule
    Code (Text):
    location / {
        index index.php index.html index.htm;
        try_files $uri $uri/ /index.php?$uri&$args;
    }
    
     
    • Like Like x 1
  3. Qu Don

    Qu Don Member

    47
    5
    8
    Aug 21, 2017
    Brooklyn, New York
    Ratings:
    +9
    Local Time:
    3:56 PM
    I just tucked it here
    Code:
    # Wordpress Permalinks example
      index index.php index.html index.htm;
      try_files $uri $uri/ /index.php?$uri&$args;
    
      }
    Restarted with nginx -s reload
    And this babe is fired up! Now I guess I can peacefully go to bed:D

    Thank very very much!
     
    • Like Like x 1
..