PDA

View Full Version : vRewrite "Lite"


cd1986
08 Jan 2007, 22:01
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

Immortal
09 Jan 2007, 01:43
Stuck. :)

cd1986
09 Jan 2007, 04:08
Stuck. :)
Thanks :)

Updated the code to v1.01 - 1st attempt at showthread.php url resolving.

Smike
20 Feb 2007, 12:59
Thanx !
It work Good !
Only problem on online.php with unknow page location...