Previous Thread
Next Thread
Print Thread
Hop To
Joined: Nov 2006
Posts: 40
newbie
newbie
Joined: Nov 2006
Posts: 40
I've been wondering about this for a while: is there an htaccess file that will 301 Redirect old style addresses to the new search engine friendly ones? The reason is to get rid of duplicate content issues on SEs.

I've been looking at the "make_ubb_url" function and figured it might provide a basic template for me to build my own redirects, but it'd be a helluva job. So, if the htaccess for this already exists, I'd really appreciate it! smile

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Well, there are php and cgi redirect files available in the member area; unless your heart is set on using htaccess for some reason...

Both UBB.C and UBB.T v6 used different filenames than UBB.T7 so there should be no conflict...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 40
newbie
newbie
Joined: Nov 2006
Posts: 40
Hi Gizmo - thanks for that. smile PHP is absolutely fine - but I've not seen the files? I'll take another look...

Joined: Nov 2006
Posts: 40
newbie
newbie
Joined: Nov 2006
Posts: 40
Ok, thanks Gizmo. I took a look, but those files aren't quite what I was after - though to be fair I probably didn't quite say what I meant! wink

It's to do with changes in the URL structure from the dynamic URLs to search engine friendly URLs. The SE friendly URL system is great, but currently it leads to a duplicate content. Take this:
Code
forums/ubbthreads.php?ubb=cfrm
and this...
Code
forums/ubbthreads.php/ubb/cfrm

The thing is BOTH of these addresses are valid, but I only want the SECOND to lead to a page - the first I want to 301 redirect. Now, I've discovered that I can use something like the following to match up query string pairs for an htaccess redirect:

Code
RewriteCond %{THE_REQUEST} ^[A-Z]+\ /forums/forumcode\.php\?([^=]+)=([^&]+)&([^=]+)=([^&\ ]+)\ HTTP/ 
RewriteRule ^forumcode\.php$ http://www.example.com/forums/forumcode.php/%1/%2/%3/%4? [R=301,L]

However, though this reconstructs the query string in order, often the result is a database error, so it clearly isn't the foolproof method. So, has anyone done any work on this? HELP? smile

ADD - It occurs to me that this COULD be achieved in the UBBThreads PHP. If a query string is set, then rather than dealing with it it could be 301 Redirected to the SE friendly address. At least as an option for SEO bent admins?!??!

Last edited by Neil White; 04/30/2009 9:11 AM. Reason: Had a thought... :)
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Ahh, i was thinking something different lol...

Curious what advantages you're seeking over using the built in SEO methods in threads...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 40
newbie
newbie
Joined: Nov 2006
Posts: 40
Originally Posted by gizmo
Curious what advantages you're seeking over using the built in SEO methods in threads...
It's to do with "duplicate content" (give it a Google).

If you have dynamic pages that can be generated in more than one way - as described in my last post - then the search engines (in particular Google) can and do interpret this as two distinct pages on your site with duplicated content. This can, and does, lead to two distinct SE listings, with two completely separate page ranks and sets of incoming links, all for the exact same content. The result is watered down SE listings at best, or in the worst cases even listing penalties for duplication. frown

Google do assert that they have this covered, and that their algorithms take the issue into account. They suggest that their algorithm "chooses" one of the addresses, and bases results on that. The bottom line is, that's just not true!

Our main forum page had two distinct page ranks based on the access URI: forums/ or forums/ubbthreads.php?ubb/cfrm. Besides, even if Google DID manage to "choose" one URL to concentrate on, who's to say that they'll choose the one you want?! smirk

The existing 'Threads SEO works great at what it does, but it doesn't deal with the duplication issue. This is the kind of thing I'm starting to tackle, and I'll post back here on any progress I make.

Of course, if anyone else wants to throw in it'd be appreciated! Particularly, it'd be useful to know, if anyone has them, the query string patterns going back quite a few versions of 'Threads, because we've been running it for nearly 10 years and some of our incoming links actually still remain from way back then! shocked

As I said before, I guess I can fish all this out of the 'Threads PHP if necessary, but it's an arduous task to confront a lowly coder all alone in his attic... wink

Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
I know exactly what you are talking about. When I converted from classic two years ago. Bookmarks and indexes were issues even with the redirectors in place. And still are in some cases.
I never could get the rewrite rule to work for me either.
Not when I enabled the spider friendly URLS option.

To make it worse for me I went from a windows host to linux. So Case issues with URls came into play.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Well, one of my sitemap threads talks about the ubb multi urls, so i get you there...



I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Dec 2003
Posts: 6,562
Likes: 78
Joined: Dec 2003
Posts: 6,562
Likes: 78
Is that a plug Gizmo?
Maybe talk TED into buying your sitemap to include in the stock code.


Blue Man Group
There is no such thing as stupid questions. Just stupid answers
Joined: Feb 2007
Posts: 1,294
Likes: 2
Veteran
Veteran
Joined: Feb 2007
Posts: 1,294
Likes: 2
LOL, HAHAHAHAHA. Buying?

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Originally Posted by Ruben
Maybe talk TED into buying your sitemap to include in the stock code.
I'm ultimately sure he'd just have Rick code his own tongue...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2008
Posts: 326
D
Enthusiast
Enthusiast
D Offline
Joined: Mar 2008
Posts: 326
The first one is a link to the start of the topic; the second a link to a response to the original post, hence the "Re".

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
The number is the number of the post; it's also an anchor in the page. The text before .html is the subject line; when you access a child post of a parent topic it will link you to the thread of the parent topic with the anchor of the post defined...

So, you access 226059 it loads the thread starting with topic 226056 and "anchors" you to 226059.

Why do they display duplicate content? Well, it's the same thread... page=1 would also link you to duplicate content...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Nov 2006
Posts: 40
newbie
newbie
Joined: Nov 2006
Posts: 40
Originally Posted by gizmo
Why do they display duplicate content? Well, it's the same thread...
Yup, and that's what needs to be brought under control. The anchor isn't so much an issue, but having multiple URIs, even if they're dynamic, to have identical content listed is a big problem.

For what it's worth, and forgive me if I'm wrong, but I suspect hoainam may be trolling...

Last edited by Neil White; 05/12/2009 9:04 AM.
Joined: Nov 2006
Posts: 40
newbie
newbie
Joined: Nov 2006
Posts: 40
Originally Posted by Ruben
When I converted from classic two years ago. Bookmarks and indexes were issues even with the redirectors in place.
This is the point, the redirectors work from old URI to new URI, but they don't disallow concurrent URI methods.
Originally Posted by Ruben
To make it worse for me I went from a windows host to linux. So Case issues with URls came into play.
That's a 404 issue for an htaccess nightmare ! blush ...
Originally Posted by gizmo
Well, one of my sitemap threads talks about the ubb multi urls
Yay! So where do I find that thread - I've looked...?!!? (Well, a bit...)

Joined: Jun 2006
Posts: 16,299
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,299
Likes: 116
Believe it or not, I'm having issues using the search to find it lol... I'll take a closer look over the weekend and try to see if I can find it


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Jul 2006
Posts: 116
Likes: 4
P
Member
Member
P Offline
Joined: Jul 2006
Posts: 116
Likes: 4
I also posted about this issue in this thread:
https://www.ubbcentral.com/forums/u...l_Your_top_feature_you_w.html#Post217664

I hope Rick is going to fix this in version 8


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
2 members (Ruben, Nightcrawler), 411 guests, and 171 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)