• Resolved nachor

    (@nachor)


    I tryied to use this plugin to redirect all subdirectories to a default error page /notfound using the regex “/*”
    Now whenever I access miaapp.es it redirects me to /notfound/notfound, I’ve tryied solving this mistake by removing the redirect, by changing it to “/*” -> https://miaapp.es, and also by editing .htaccess files but I can’t solve the redirect error.
    What changes does this Redirect plugin do inside server? If I know what file modifies I could revert them by deleting the regex that does this wrong redirection and solve the 400 another way.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter nachor

    (@nachor)

    I managed to solve the redirect by editing /var/www/domain/wp-content/plugins/redirection/models/htaccess.php and commenting the const INSERT REGEX.

    I’ve uninstalled the plugin since I’m going to look for another aproach for my redirects and I’m not sure if the folder /redirection/ is still needed since htaccess.php seems to be triggered even if I uninstall the plugin

    Plugin Author John Godley

    (@johnny5)

    /* is a wildcard, and will not produce the regular expression you are looking for. Wildcards are not supported.

    Redirection does not save to .htaccess unless you specifically configured it to do so, and I don’t think you did this.

    No part of the plugin runs when disabled. It would be impossible to run when uninstalled.

    I don’t know what you are trying to do but it seems mostly unnecessary, and could be solved by using an appropriate expression, and clearing your browser cache.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘/* redirect’ is closed to new replies.