Previous Thread
Next Thread
Print Thread
Hop To
#238624 08/12/2010 12:56 AM
Joined: Jun 2006
Posts: 28
S
newbie
newbie
S Offline
Joined: Jun 2006
Posts: 28
Hey -- upgrading from 6.5 to 7.5.

Clearly all the URLs have changed.

My problem is that I'm trying to put in place 301 directs to the new canonical names to preserve the thousands of links in Google that I have to my forums.

The redirect scripts that come with the importer are unfortunately NOT canonical. They tack "/site_id/1" to the end of every post URL, which is different than the URLs produced within ubbthreads itself.

I've already dealt with enough nightmares and accidental penalties as a result of duplicate content and Google before in years past -- I don't want to start off showing Google thousands of URLs that aren't canonical and will quickly become duplicated by the non "/site_id/1" versions.

Does anyone know of a method outside of including 40,000 redirects in an .htaccess file that will allow me to redirect all my old showflat/showthreaded posts to the new CANONICAL URLs of format
"/newforum/ubbthreads.php/topics/545732"

Thanks

Last edited by Snarf; 08/12/2010 1:00 AM.
Joined: Jun 2006
Posts: 28
S
newbie
newbie
S Offline
Joined: Jun 2006
Posts: 28
Just a follow up.. I think I've solved this problem.

I've modified the original template to query the new import table, look up the new post number, and then redirect 301 directly to the new URL, bypassing the site_id=1 thing.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
You were quicker than me. By the time I figured out what you were trying to do, you got it figured out. Sounds like a nice solution for what you were looking for.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
spam issues
by ECNet - 03/19/2024 11:45 PM
Who's Online Now
1 members (ahmed047), 624 guests, and 172 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)