Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Search Search
Search for:
Tech Support Guy > > >

htaccess for php? redirect


(!)

madd74's Avatar
madd74 madd74 is offline madd74 has a Profile Picture
Computer Specs
Member with 285 posts.
THREAD STARTER
 
Join Date: Nov 2003
Location: Des Moines, IA
Experience: Advanced
25-May-2012, 12:52 PM #1
htaccess for php? redirect
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?
dukevyner's Avatar
dukevyner   (Luke) dukevyner is offline
Computer Specs
Member with 787 posts.
 
Join Date: Nov 2011
Location: Pakenham, VIC, Australia
Experience: Advanced
25-May-2012, 09:03 PM #2
<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

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
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.


Tags
htaccess, redirect

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑