PDA

View Full Version : Reverse url rewrite help.


SoundOfSilence
06-25-2007, 05:29 PM
Hello everyone. I was googling for this topic and came by this site.
Anyway, I've been using url rewriting on a vbulletin board and now I've decided to stop it.
I've been reading about it increasing the server load, and I've seen a lot of boards without it that do quite good on search engines. And I wanna be able to create a sitemap with all urls with sitemap generator for vbulletin.
But the thing is that I got few thousands of urls indexed in google. And I'd hate to loose them. Although about half of those are already dynamical anyway. But still would hate to have dead urls on search engines. So I was hoping someone could helpe me create htaccess that would do 301 redirect back to dynamic urls.
Here is what urls look now.
forum url:
forum[forum_id]/[forum_title].html
should be redirected to:
forumdisplay.php?f=[forum_id]
thread url:
forum[forum_id]/[thread_id]-[thread_title].html
should be redirected to:
showthread.php?t=[thread_id]

Thanks in advance for any help.

SoundOfSilence
06-26-2007, 07:36 PM
Never mind, I managed to figure it out. Thx to this:

http://www.ilovejackdaniels.com/apache/mod_rewrite-cheat-sheet/