Forum Moderators: phranque

Message Too Old, No Replies

redirect Old urls to Pretty urls

         

reshadat

6:13 am on Jun 4, 2008 (gmt 0)

10+ Year Member



Hi. I've setup pretty urls on my site. Now the problem is that the users are still able to see old urls. I want to setup redirection so that the old urls are redirected to new urls. The sample urls are:

 OLD: http://www.example.com/e107_plugins/alternate_profiles/newuser.php?id=301

NEW: http://www.example.com/people/301

How can I setup redirection to redirect old to new? Please help me.

[edited by: jdMorgan at 2:32 pm (utc) on June 4, 2008]
[edit reason] example.com [/edit]

g1smd

10:22 am on Jun 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You need to be linking to the shorter URL and then you need a rewrite and a redirect.

The rewrite takes a short URL request and rewrites it to the longer internal filepath without exposing that path.

The redirect tells a browser that asks for the long URL to make a new request for the short URL.

There are plenty of prior examples here in this forum, as someone asks this question almost every day.

jdMorgan

2:34 pm on Jun 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



See Changing Dynamic URLs to Static URLs [webmasterworld.com] to get started.

Jim