Dynamic PHP Problem

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Mon Apr 18, 2005 1:51 am    Post subject: Dynamic PHP Problem Reply with quote

I have made my site dynamic using PHP. My problem is it is already indexed by search engines not using this.

For instance ... my page is http://www.mydomain.com/index.php?x=hunt_2000 but it is still indexed on search engines as http://www.mydomain.com/hunt_2000.php . This will bring up the page but with no formatting which is in the header and footer includes.

Is there any way anyone knows of to stop going to the old PHP pages or redirecting them to the new page?
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2


Last edited by mg66 on Thu Dec 01, 2005 10:52 pm; edited 1 time in total
Back to top View user's profile Send private message Visit poster's website
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Mon Apr 18, 2005 2:20 am    Post subject: Reply with quote

try this

<?php
header("Location: http://www.newsite.com/"); /* Redirect browser */
/* Make sure that code below does not get executed when we redirect. */
exit;
?>

and put that at the top of the webpage.
_________________
Back to top View user's profile Send private message AIM Address
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Mon Apr 18, 2005 3:15 am    Post subject: Reply with quote

That works but then the dynamic links ie http://www.bghi.us/index.php?x=hunt_2000 dont work. Got any other suggestions
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2
Back to top View user's profile Send private message Visit poster's website
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Mon Apr 18, 2005 3:19 am    Post subject: Reply with quote

You want http://www.bghi.us/hunt_2000.php to goto http://www.bghi.us/index.php?x=hunt_2000 right?
_________________
Back to top View user's profile Send private message AIM Address
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Mon Apr 18, 2005 3:21 am    Post subject: Reply with quote

Yes, thats what I am hoping to to do mate.
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2
Back to top View user's profile Send private message Visit poster's website
k1ll3rdr4g0n
-


Joined: 04 Jul 2004
Posts: 609

PostPosted: Mon Apr 18, 2005 3:29 am    Post subject: Reply with quote

delete everything in http://www.bghi.us/hunt_2000.php and replace it with:

<?php
header("Location: http://www.bghi.us/index.php?x=hunt_2000");
exit;
?>
_________________
Back to top View user's profile Send private message AIM Address
mg66
-


Joined: 15 Aug 2004
Posts: 85
Location: USA, Illinois

PostPosted: Mon Apr 18, 2005 3:33 am    Post subject: Reply with quote

I tried that also and just gets a blank in the main table
_________________
mg66

http://sv650.metromain.net
http://photography.metromain.net
http://weather.metromain.net
http://www.metromain.net
http://www.bghi.us


Abyss Web Server X2
Back to top View user's profile Send private message Visit poster's website
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Mon Apr 18, 2005 1:36 pm    Post subject: Reply with quote

mg66 wrote:
I tried that also and just gets a blank in the main table


A meta redirect mabye?
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group