WordPress.org

Forums

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

  1. dealsoff
    Member
    Posted 1 year 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 1 year ago #

    Hello. For nginx, use

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

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

  3. Mauhem
    Member
    Posted 10 months ago #

    Add

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP No External Links
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.