PDA

View Full Version : 301 redirect in vbulletin v2.2.9


getthat
12-01-2004, 07:06 PM
Hi Guys,

I've got to rename the urls on my vb site (e.g. www.site.com/1/index.html will become www.site.com/1/2/index.html). I've got to do this via a 301 header in php to make it look attractive for the search engines. Headers are formed in the global.php file but how can I implement this ? It are just a few urls that have to change (about 80% which will have to be redirected).

Grz

getthat
12-02-2004, 06:17 AM
Somebody ? Am I making myself not clear enough ?

getthat
12-03-2004, 02:43 PM
any suggestions please ?

miz
12-03-2004, 07:19 PM
hmm what do you mean ?

getthat
12-07-2004, 12:46 PM
OK, I'll try to explain it again.

Now I've got some pages with url's like http://www.site.com/1/bla. I've got to add a new subdirectory and the links will change to http://www.site.com/1/2/bla. I cannot change the urls without notifying the search engines that these pages moved. So, I've got to send a 301 page redirect permanently header when someone goes to http://www.site.com/1/bla (he will be redirected to http://www.site.com/1/2/bla.

The code for the headers is located in the global.php file (search for header). There is only one header configured and that's the 200 "everything's ok". I've got to add a 301 header in this section of global.php and it has to work for specific urls. Someone knows how to do this ? I guess this would be a great hack for people who want to move some urls of their site to a new url and keep their good position in the search engines.

Getthat

getthat
12-08-2004, 01:50 PM
Someone ?