Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
  #1  
Old 08 Jan 2007, 22:01
cd1986 cd1986 is offline
 
Join Date: Sep 2005
vRewrite "Lite"

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. 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
Attached Files
File Type: zip vRewrite Lite 1.01.zip (3.9 KB, 119 views)

Last edited by cd1986; 09 Jan 2007 at 04:10.
Reply With Quote
Comments
  #2  
Old 09 Jan 2007, 01:43
Immortal's Avatar
Immortal Immortal is offline
 
Join Date: Jul 2005
Real name: Tyler
Stuck.
Reply With Quote
  #3  
Old 09 Jan 2007, 04:08
cd1986 cd1986 is offline
 
Join Date: Sep 2005
Originally Posted by Immortal View Post
Stuck.
Thanks

Updated the code to v1.01 - 1st attempt at showthread.php url resolving.
Reply With Quote
  #4  
Old 20 Feb 2007, 12:59
Smike Smike is offline
 
Join Date: Jun 2002
Thanx !
It work Good !
Only problem on online.php with unknow page location...
__________________
French Graphic Community : HeRe
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:38.

Layout Options | Width: Wide Color: