Problema al instalar el MOD Pretty URLs

Started by radge, January 08, 2024, 10:21:12 AM

Previous topic - Next topic

radge

Buenas, acabo de instalar este mod en SMF 2.1.4 estoy como admin y el problema es que todas las urls me envian al inicio, tengo este virtualhost en nginx

server {
    server_name ejemplo.com;

    root /var/www/html/test;
    index index.php index.html index.htm;
 

# Rules for: boards
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty&board=$1.0" last;
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ "/index.php?pretty&board=$1.$2" last;

# Rules for: topics
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ "/index.php?pretty&board=$1&topic=$2.0" last;
rewrite ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ "/index.php?pretty&board=$1&topic=$2.$3" last;

# Rules for: actions
rewrite ^(agreement|acceptagreement|activate|admin|announce|attachapprove|buddy|calendar)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(clock|coppa|credits|deletemsg|dlattach|editpoll|editpoll2|findmember)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(groups|help|helpadmin|jsmodify|jsoption|likes|lock|lockvoting)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(login|login2|logintfa|logout|markasread|mergetopics|mlist|moderate)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(modifycat|movetopic|movetopic2|notifyannouncements|notifyboard|notifytopic|pm|post)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(post2|printpage|profile|quotefast|quickmod|quickmod2|recent|reminder)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(removepoll|removetopic2|reporttm|requestmembers|restoretopic|search|search2|sendactivation)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(signup|signup2|smstats|suggest|splittopics|stats|sticky|theme)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(trackip|about:unknown|unread|unreadreplies|uploadAttach|verificationcode|viewprofile|vote)/?$ "/index.php?pretty&action=$1" last;
rewrite ^(viewquery|viewsmfile|who|\.xml|xmlhttp|forum)/?$ "/index.php?pretty&action=$1" last;

    location / {
        try_files $uri $uri/ /index.php?$query_string;
    }

    location ~ \.php$ {
        include snippets/fastcgi-php.conf;
        fastcgi_pass unix:/var/run/php/php8.1-fpm.sock;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include fastcgi_params;
    }


    location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
        expires max;
        log_not_found off;
    }

    location ~ /\.ht {
        deny all;
    }


Gracias.
Nuevo foro sobre renault http://www.renaultforo.com

Diego Andrés

Si dominas un poco el inglés, lo mejor es que preguntes en el tema de soporte del MOD, el autor es muy activo.

SMF Tricks - Free & Premium Responsive Themes for SMF.

radge

Nuevo foro sobre renault http://www.renaultforo.com

Advertisement: