cd1986
01-08-2007, 09:01 PM
I was working on the duplicate url problem earlier, and so i thought i'd post what i'd compiled for anyone who might be interested. The problem i'm referring to is:
http://www.your-forum.com/welcome-f1.html
http://www.your-forum.com/random-thing-f1.html
Using vRewrite, the above urls both lead to the same forum, meaning search engines will see them as 2 separate urls to the same page. Of course, it doesn't have a large impact, but i still like it better when they all resolve to a single url.
The reason i put "lite" is that the urls don't look re-written until you click them. :p Mainly because i was testing the re-direct only portion of the hack, and so wasn't too concerned with the "on page" re-writing. So basically, this 301 redirects urls to their keyword filled counterparts, but you won't see the keyword urls when hovering over forum links. I'm more concerned about search engines than links being "people-friendly".
If you wanted to add the change into the full version, just open up the xml, and take the single plugin in there and over-write that plugin in the full xml version. That does mean you must edit the htaccess to remove several instances of is_vrewrite=yes and also several instances of $_GET['is_rewrite'] in the xml file.
The reason i didn't bother integrating it into the full version is that i'm actually sticking with this one for now. One last thing, this only covers forum, thread, and member urls. In my opinion showpost urls should be stopped from being indexed by engines anyway.
Any demo? Not at this time, my forums are currently closed while i do a major overhaul. :)
Change Log:
v1.00 - initial version
v1.01 - updated showthread.php re-direction code
http://www.your-forum.com/welcome-f1.html
http://www.your-forum.com/random-thing-f1.html
Using vRewrite, the above urls both lead to the same forum, meaning search engines will see them as 2 separate urls to the same page. Of course, it doesn't have a large impact, but i still like it better when they all resolve to a single url.
The reason i put "lite" is that the urls don't look re-written until you click them. :p Mainly because i was testing the re-direct only portion of the hack, and so wasn't too concerned with the "on page" re-writing. So basically, this 301 redirects urls to their keyword filled counterparts, but you won't see the keyword urls when hovering over forum links. I'm more concerned about search engines than links being "people-friendly".
If you wanted to add the change into the full version, just open up the xml, and take the single plugin in there and over-write that plugin in the full xml version. That does mean you must edit the htaccess to remove several instances of is_vrewrite=yes and also several instances of $_GET['is_rewrite'] in the xml file.
The reason i didn't bother integrating it into the full version is that i'm actually sticking with this one for now. One last thing, this only covers forum, thread, and member urls. In my opinion showpost urls should be stopped from being indexed by engines anyway.
Any demo? Not at this time, my forums are currently closed while i do a major overhaul. :)
Change Log:
v1.00 - initial version
v1.01 - updated showthread.php re-direction code