Forum Moderators: phranque

Message Too Old, No Replies

Really urgent htaccess rewrite rule to a different folder

         

halisemre

1:46 am on May 13, 2010 (gmt 0)

10+ Year Member



I have changed the links for tags from www.mysite.com/tags/(etc) to www.mysite.com/(etc)

for example

in old version it was http://www.example.com/tags/car

the new version is http://www.example.com/car

i need to redirect all users coming to http://www.example.com/tags/car automatically to http://www.example.com/car

I really need urgent help I appreciate in advance

[edited by: jdMorgan at 3:09 am (utc) on May 13, 2010]
[edit reason] Please use example.com only. [/edit]

halisemre

1:47 am on May 13, 2010 (gmt 0)

10+ Year Member



it got cut off

example.com/tags/car (old version)
example.com/car (new version)

[edited by: jdMorgan at 3:10 am (utc) on May 13, 2010]
[edit reason] Please use example.com only. [/edit]

jdMorgan

3:12 am on May 13, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please post your best-effort attempt at coding a solution, as a basis for discussion.

For more information, please review our Forum Charter.

You can find example code for this simple redirect at apache.org, using either mod_alias or mod_rewrite.

Jim

halisemre

5:42 am on May 13, 2010 (gmt 0)

10+ Year Member



i have been searching for a while it is urgent because of indexing that is why I am in a rush