Want more timely Centmin Mod News Updates?
Become a Member

Wordpress Unfortunately wordpress rules intercepts you and gives an error code.

Discussion in 'Blogs & CMS usage' started by Max, Nov 23, 2024.

  1. Max

    Max Member

    124
    5
    18
    Feb 17, 2018
    Ratings:
    +9
    Local Time:
    2:55 AM
    Hello, I have a nostr program running in a subdirectory of wordpress which generates a website.
    https://mojobus.org/abgefahren/
    Unfortunately wordpress rules intercepts you and gives an error code.
    https://mojobus.org/abgefahrenpostnote12r6yw5vx2vre3s73avs2xlsemg3arxad652se5v7cnujy75n8qesm7lp6w/


    how can i prevent an error from occurring for https://mojobus.org/abgefahren/
    Code:
    The page you are looking for is no longer here, or never existed in the first place (bummer). You can try searching for what you are looking for using the form below. If that still doesn't provide the results you are looking for, you can always start over from the home page.
    Thanks
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,126
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    the nostr program might need it's own nginx context outside of Wordpress

    have you asked nostr program developers? do they have nginx rules you can use? You'd need to that adjust for Centmin Mod Nginx/wordpress combined usage

    maybe

    Code (Text):
    location ^~ /abgefahren/ {
        root /path/to/your/nostr/files; # Replace with the actual path to your Nostr-generated files
        index index.html;
        try_files $uri $uri/ =404;
    }
    location ~ ^/abgefahren/.*\.php$ {
        root /path/to/your/nostr/files; # Replace with your Nostr files directory
        include fastcgi_params;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_index index.php;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    }
    
     
  3. Max

    Max Member

    124
    5
    18
    Feb 17, 2018
    Ratings:
    +9
    Local Time:
    2:55 AM
    not work
    All requests should go to index.html
    thanks
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,126
    12,179
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,739
    Local Time:
    12:55 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Could you elaborate on the errors or what your getting and what you expect to happen? Hard to know as I do not use that Web app.