404 not found

  • So enabling both wasn't good.

    So disabled the other.

    The FULL config is this...

    I've obviously removed my true ip addresses ;)

    Point of reference for current paths

    Spoiler anzeigen
  • The Reason is simple:
    You installed the Blog to your root directory so sociallyuncensored.com/ is the correct Link
    So you have to remove the blog entry from the rewrite roules:
    rewrite ^/(wcf/|faq/|gallery/|filebase/|wbb/|chat/)?([a-zA-Z0-9\-]+)/([^/]+)?/?$ /$1index.php?$2/$3 last;
    this should work ;)

  • have you reloaded nginx after config change ?

    Yes, of course. For argument sake, I even reloaded php (I know its not needed, but it doesn't hurt)

    service php5-fpm restart

    service nginx restart


    and which nginx version do you use ?

    The only one that matters

    nginx version: nginx/1.7.12

    The Reason is simple:
    You installed the Blog to your root directory so sociallyuncensored.com/ is the correct Link
    So you have to remove the blog entry from the rewrite roules:
    rewrite ^/(wcf/|faq/|gallery/|filebase/|wbb/|chat/)?([a-zA-Z0-9\-]+)/([^/]+)?/?$ /$1index.php?$2/$3 last;
    this should work ;)

    It works without blog added, but it did not solve the issue

    sociallyuncensored.com/blog = 404

    sociallyuncensored.com/blog/ = GOOD

    Someone asked me what is here?

    Code
    include /etc/nginx/rewrites.conf;
    include /etc/nginx/staticfiles.conf;
    include /etc/nginx/php.conf


    Alright...

    rewrites.conf

    PHP
    location ~ 404.shtml {
    	rewrite ^(.*)$ http://sociallyuncensored.com redirect;
    }


    staticfiles.conf

    php.conf

  • Well, try this one:
    rewrite ^/(wcf/|faq/|gallery/|filebase/|wbb/|chat/)?([a-zA-Z0-9\-]+)(/[^/]+)?/?$ /$1index.php?$2/$3 last;
    this makes the ending slash optional

  • Well, try this one:rewrite ^/(wcf/|faq/|gallery/|filebase/|wbb/|chat/)?([a-zA-Z0-9\-]+)(/[^/]+)?/?$ /$1index.php?$2/$3 last;this makes the ending slash optional

    Fixed blogs.... However made all forum links invalid. :(

  • maybe you should simply add a single rewrite roule for the blog only.

    rewrite ^/blog(.*)$ /index.php?blog$1 last;

    Should work...

    WINNER !!!!

    This is what I'm using now :)

  • And for the future, I already said that to you:
    Please do not post multiple posts after each other! Edit your previous post of nobody has already answered.

    That's an odd request, but something I'll try to keep in mind. On most of the communities that I visit, including my own, it is frown upon to edit something later as often it is abused.

    Further it isn't intuitive or helpful... If I read your post and 1/2 hour from now you edit it to include something you forgot... I'm not going to notice you edited it or get any notice that you did and so I'm not going to get that new bit of important information.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!