Forum Moderators: phranque

Message Too Old, No Replies

.htaccess redirect

         

Giovanni

9:50 pm on Jun 27, 2010 (gmt 0)

10+ Year Member



I run e107 as a content management system for my website, i recently removed from urls "e107_" prefix
I want to know how can i redirect all old urls to new ones

old urls are like this:
domain.com/e107_plugins/forum/forum_viewforum.php?52
domain.com/e107_plugins/forum/forum_viewforum.php?52.0
domain.com/e107_plugins/forum/forum_viewforum.php?52.15

new urls:
domain.com/plugins/forum/forum_viewforum.php?52
domain.com/plugins/forum/forum_viewforum.php?52.0
domain.com/plugins/forum/forum_viewforum.php?52.15

I dont know the exact urls for the rest because i didnt check all, i want to do the redirect because most of them ranks in google and have page rank so i dont want to lose any traffic.

Anyone can help me?
Thanks.

jdMorgan

2:51 pm on Jun 29, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a simple redirect, since only the directory is changing. You could use Apache mod_rewrite or mod_alias, or even add the redirect function into your forum_viewforum.php script.

What have you tried so far?

Jim