phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
redirect not working

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » SEO Techniques
::  
Author Message
ukspread



Joined: 09 Dec 2006
Posts: 1

redirect not workingPosted: Sun Dec 10, 2006 1:46 am    Post subject: redirect not working

Hi,

I have only just started to learn PHP, a bit late in the day I know but at least I have made a start. My problem is that I have two forums but one of which I am turning off, I need a redirect page in order to do this, javascript is out of the question in case some of my users have it turned off! So I went with the PHP option instead (header (Location: http://www.mysite/forum) but when I used a refresh command along with echo to tell the user that they would be redirected in "x" amount of secs, it did not echo anything, in fact it just sat there counting the secs until it did redirect to new url.

Is there a simpler method to redirecting for one url to another?

Many thanks, brilliant forum!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

redirect not workingPosted: Sun Dec 10, 2006 4:45 pm    Post subject: Re: redirect not working

And welcome Very Happy

So you have an old forum, and you want it redirected to the new one ?

You're right, JS is not an option SEOwise.

Then, PHP can be used, with the header() function, you just need to specify the http header sent (It should be a 301), but not only. Apache mod_rewrite could be as well handy to handle massive redirecting.

So it depends, are both forums installed under the same domain name ?

Do they keep the same URLs so that we could image to redirect -www.old.com/url.html to -www.new.com/url.html ?

And do you have the mod_rewrite module available together with Apache server or isapi_rewrite with IIS ?

Then, we'll be able to build up proper redirection (mod_rewrirte, php and / or both).

++

_________________
Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche
Back to top
Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » SEO Techniques
Page 1 of 1

Navigation Similar Topics

Jump to: