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

How can i redirect a old / deleted thread URL to a new page ?

Discussion in 'XenForo Questions and Support' started by DEREKTROTTER, Apr 22, 2013.

  1. DEREKTROTTER

    DEREKTROTTER Member

    I recently deleted a thread on my forum and re-added it as a resource. Now whenever visitors click my thread URL, they obviously get this:

    [​IMG]

    Now is there a way to make that redirect to the resource?
    Or if not, at least make it auto redirect to homepage
    Doesnt seem to work using the cpanel redirect.

    Thanks
     
  2. Tracy Perry

    Tracy Perry Well-Known Member

    Depends on whether you are using Apache or nginx or lightspeed. The rewrite rules are different.
     
  3. Kevin

    Kevin Well-Known Member

    If you are using Apache, try this in your .htaccess (if you already have "RewriteEngine On" don't re-add it, just add the "Redirect" line...
    Code:
    RewriteEngine On
    Redirect 301 {OLD URL} {NEW URL}
    
    For future use, instead of deleting the original thread just re-assign it to the Resource using this add-on....

    http://xenforo.com/community/resources/resource-manager-thread-reassign.1560/
     
    DEREKTROTTER likes this.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    If you post the exact old and new URL then I can provide an exact rewrite rule.
     
  5. DEREKTROTTER

    DEREKTROTTER Member

    thanks, ill PM you
     
  6. DEREKTROTTER

    DEREKTROTTER Member

    this didnt work, still cant get the redirect working.
     
  7. Kevin

    Kevin Well-Known Member

    Did Jake get you via PM?

    If your old & new URLs look like the below...

    Old URL: http://MySite.com/Something.php?do=1
    New URL: http://MySite.com/Else.php?instead=1

    ... then your .htaccess entry would be:
    Redirect 301 /Something.php?do=1 http://MySite.com/Else.php?instead=1
     
    DEREKTROTTER likes this.
  8. DEREKTROTTER

    DEREKTROTTER Member

    yes ive tried the rewrite jake gave me and yours, still no luck.
     
  9. Kevin

    Kevin Well-Known Member

    Can you post your before & new URLs and your .htaccess file? If you prefer to keep it quiet, feel free to send a PC. :)
     
  10. DEREKTROTTER

    DEREKTROTTER Member

    still need help with this if possible

    none of the solutions the above members worked unfortunutely.

    Thanks.
     
  11. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    The rewrites I gave you via PM should have worked. I can take a look if you give me FTP access to your server.
     
    DEREKTROTTER likes this.

Share This Page