Forum Moderators: phranque

Message Too Old, No Replies

Redirect Dynamic URLs?

         

Chaoslight

8:48 pm on Jul 31, 2006 (gmt 0)

10+ Year Member



Hello :)

Im having some trouble.

You see.. most of my pages are indexed under /v3/ and thats were I get most of my traffic going to (via search engines, etc).

So most of my traffic is going to http://www.example.com/v3/.

Ive decided to change this, and want most of my traffic to redirect to http://www.example.com/.

Most pages are easily changed, but when it comes to parts such as the tutorial section, I have dynamic URLs and am not sure how to redirect them.

So basically can someone provide me with the .htaccess code to redirect

http://www.example.com/v3/tutorials/?action=viewtutorial&id=34

to

http://www.example.com/tutorials/?action=viewtutorial&id=34

Thanks in advance :)

[edited by: Chaoslight at 8:52 pm (utc) on July 31, 2006]

[edited by: jdMorgan at 11:01 pm (utc) on July 31, 2006]
[edit reason]
[1][edit reason] No URLs, please. See TOS. [/edit]
[/edit][/1]

jdMorgan

11:08 pm on Jul 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Your existing rule should correctly handle these by default, as long as the query string doesn't need to be changed. The default behaviour of mod_rewrite is to pass query strings through unchanged.

For more details, see some of these previous threads [google.com].

Jim