Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    This plugin may not be the way to go here. Can you provide some real URLs as an explanation?

    I used .htaccess via mod_rewrite to do that without a plugin and with some examples I may be able to walk you through the same results.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    *Drinks more coffee, sees that my question has already been answered*

    I need to redirect everything from dbj.org/dbj to dbj.org

    Try this at the top of your .htaccess file.

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteRule ^dbj/(.*) http://dbj.org/$1 [R=301,L]
    </IfModule>

    Get ready to delete that quickly in case it creates a redirect loop. πŸ˜‰

    or you could use /dbg(.*) rediret to /

    If you have more directories after /dbg you could try

    ^/dbg/.*

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

The topic ‘REGEX’ is closed to new replies.