1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htaccess redirect all http://www.i.com/j/k* threads to http://www.i.com/j (forum index)

Discussion in 'XenForo Questions and Support' started by Puntocom, Jun 20, 2011.

  1. Puntocom

    Puntocom Well-Known Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Use this code in a .htaccess file inside of the 'k' directory:

    Code:
    Redirect 301 /j/k /j
    
    This will redirect all requests. For example, this request:

    http://www.i.com/j/k/index.php

    Will be redirected here:

    http://www.i.com/j/index.php
     
  3. Puntocom

    Puntocom Well-Known Member

  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Oh OK. That's different. Try this:

    Code:
    RedirectMatch ^/foros/thread-([^.]+)\.html$ /foros/
    
     
    Puntocom likes this.
  5. Puntocom

    Puntocom Well-Known Member

    Thanks! it works :)
     

Share This Page