PDA

View Full Version : How to make index.php display forumdisplay.php?2


Duncan
02-09-2011, 04:11 AM
Hi,

I have rigged my site so when you visit site.com it forwards you to site.com/forumdisplay.php?2. However, this is bad for SEO. How can I make it so when you are on site.com it displays /forumdisplayphp2 without changing the URL.

Da-Vinci
02-09-2011, 01:16 PM
I'm not sure if this will work, but I have my site go to a custom VBA portal page, what I did was opened the index.php in my forums root and changed,

/**
* Use the forum as the default script:
*/

require('forum.php');

around line 63, to

/**
* Use the forum as the default script:
*/

require('portal.php');

so my guess is, if you change,

require('forum.php');

to

require('forumdisplay.php?2');

you should get the desired effect.

Duncan
02-11-2011, 06:10 AM
Thanks for trying, but it doesn't work.

I have it set to forumdisplay.php already and then making that forward to forum2. Any other suggestions appreciated.