1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

htaccess for php? redirect

Discussion in 'Web Design & Development' started by madd74, May 25, 2012.

Thread Status:
Not open for further replies.
Advertisement
  1. madd74

    madd74 Thread Starter

    Joined:
    Nov 9, 2003
    Messages:
    285
    I have a forum where I want to take a post (madd74.com/bb/viewtopic.php?f=20&t=471) and redirect it somewhere else. I attempted a Redirect /{link}?f=20&t=471 http://{newlink} in my htaccess file, however, it is not redirecting. All my other normal redirects are going fine, so I know that is working.

    Is it not possible to redirect since it is using the ? for the link? Is there something else I can do to redirect this?
     
  2. dukevyner

    dukevyner

    Joined:
    Nov 4, 2011
    Messages:
    787
    <meta http-equiv="refresh" content="0;URL='http://yoursite.com/new page" /> where 'content="0"' is the delay... I would change either the database entry, or the page that that is used for that particular entry to add that in

    or add it to the viewtopic.php something like if (t=471){echo "<meta http-equiv="refresh" content="0;URL='http://yoursite.com/new page" />";}

    note: In this case i am assuming that the t=471 is the post you are redirecting away from
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/1054597