• Resolved luggie

    (@luggie)


    I’m trying to redirect all calls to my website example.com to redirection.com except those calls, having the suffix /suffix. Those ones should direct to folder suffix in which my wordpress insallation is.

    This is what i tried so far (spoiler: it doesn’t work as expected)

    
    RewriteEngine On
    RewriteRule ^/suffix$ https://www.example.com/suffix
    RewriteRule (.*) https://www.redirection.com
    • This topic was modified 5 years ago by luggie.
    • This topic was modified 5 years ago by luggie.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    This is the forum for the Redirection plugin. If you have general Apache questions there is probably another forum that will be better able to answer your question.

    Thread Starter luggie

    (@luggie)

    Hm thats true. Anyway how could this be achieved with this plugin?

    Plugin Author John Godley

    (@johnny5)

    Possibly, although you shouldn’t redirect things that begin with /suffix – this will create a loop. Instead you redirect everything that doesn’t start with /suffix, and leave everything that does to work normally. You can use a regular expression for that:

    https://redirection.me/support/redirect-regular-expressions/

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘RewriteRule with ‘exception’’ is closed to new replies.