WordPress.org

Ready to get started?Download WordPress

Forums

WP No External Links
[resolved] Rewrite Rules for Nginx (3 posts)

  1. dealsoff
    Member
    Posted 5 months ago #

    Can someone tell me the rewrite rules for Nginx.
    The plugins works fine for regular links but when it redirect images files it gives me a 404 error.

    https://wordpress.org/plugins/wp-noexternallinks/

  2. Jehy
    Member
    Plugin Author

    Posted 4 months ago #

    Hello. For nginx, use

    server
    {
    listen ***;
    server_name ***;
    root ***;
    index index.php;

    rewrite ^/goto(.*) http:/$1 permanent;

  3. Mauhem
    Member
    Posted 2 weeks ago #

    Add

    rewrite ^/goto/(.*) $1 permanent;
    in server section.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.