Results 1 to 3 of 3
Thread: Redirects on dynamic pages
-
05-11-2005, 07:13 PM #1Newbie
- Join Date
- Mar 2005
- Posts
- 18
Redirects on dynamic pages
I'm trying to get a redirect forum with phpBB (which doesn't support redirect forums). So what I've done is created a redirect in cPanel that redirects the forum (viewforum.php?f=28 or whatever) to the proper page. Only problem is, it doesn't like the "f=28" part and redirects all of my forums.
I've even tried modifying the .htaccess manually, to no avail. Any ideas on if it's possible?
-
05-11-2005, 08:02 PM #2Junior Guru
- Join Date
- Mar 2004
- Location
- Greater Chicagoland
- Posts
- 181
It may be possible by editing viewforum.php.
Here's a quick example:
Code:<?PHP # Line 1 of viewforum.php if($HTTP_GET_VARS['f'] == 28) { header("Location: http://www.example.com/forum/view.php?forum=1&dog=2"); exit; } ?>
-
05-11-2005, 08:46 PM #3Newbie
- Join Date
- Mar 2005
- Posts
- 18
Thanks.
I'll see if that will work.
edit: it worked! Thanks!