View Full Version : problem with archive address "/" insted of "?"
koorosh1
03-19-2009, 03:03 PM
hello....
all of my forum archive address were like this :
http://p30city.net/archive/index.php?t-21.html
but 3-4 days ago when i upgrade my forum the old addresses are not avilable
and new addresses are like this :
http://p30city.net/archive/index.php/t-21.html
and it is very bad for SEO and search engins like google none of our addresses for archive are avilable....
i have sent a ticket and they told me the new form of address is correct
so i want to use rewrite_mod and .htaccess file to redirect the old addresses
could you please help me ?
really most of forums i know in iran have the "?" form for their archive .....
thank you
Lynne
03-19-2009, 03:21 PM
I was just clicking around on my forum and all my urls in the archive have the / in them, not a ? . Did you use a modification or did you modify your code to use a ?
koorosh1
03-19-2009, 03:56 PM
thank you....
NO I DONT use anything ....
i havent made any changes in my mod and plugin just upgrading my board from 368 to 3612 ...
and this change have been made automaticly...
=============================
please see google cache for see old addreses :
http://www.google.com/search?ie=UTF-8&oe=UTF-8&q=archive%2Findex.php&btnG=%D8%AC%D8%B3%D8%AA%D8%AC%D9%88&sitesearch=http%3A%2F%2Fp30city.net
and see this forum.... http://forum.niksalehi.com/archive/
it is one of good and big persian forum .... they are like us .....
koorosh1
03-21-2009, 07:17 AM
i found where this difference comes ....
global.php at archive .....
in the correct version (3612) from line 126-129 :
we have :
if (is_array($vbulletin->iforumcache["$parentid"]))
{
foreach($vbulletin->iforumcache["$parentid"] AS $x)
{
but in another version we have an extra line :
if (is_array($vbulletin->iforumcache["$parentid"]))
{
$output = "\n$indent<ul>\n";
foreach($vbulletin->iforumcache["$parentid"] AS $x)
{
and some next lines too...
i dont know PHP so maybe it is not frome these lines but i can see it is from this file...
i have replaced this 2 files then i could access ( ? ) form of addresses ....
but really if slash form (/) is better i want to have it defult and redirect the old addreses with .htaccess file but i dont know how !
i have attached both global.php and you can test them...
thank you..
Lynne
03-21-2009, 03:51 PM
Have you tried googling "htaccess redirect" ? You should find how to write a redirect that way.
koorosh1
03-21-2009, 06:45 PM
thank you...
i know a few about htaccess commands and read all article about it...
but really i couldnt resolv it ...
never minde..... i use the old global.php till i can redirect the old addreses..
thank you for your helping but i will check this again.... and if i finde a way i will tell you
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.