View Single Post
Old 03-07-2010, 03:07 PM  
zentz
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Posts: 8,053
.htaccess redirect, wildcard

Is there a wildcard that i can use if i want to redirect all urls containing /somedir/blabla/694 ?

example
Redirect 301 /somedir/blabla/694-some-link http://www.website.com/blabla/some-link
Redirect 301 /somedir2/blabla/694-some-other-link http://www.website.com/blabla/some-other-link
Redirect 301 /somedir3/blabla/694-some-third-link http://www.website.com/blabla/some-third-link

Basicly i want to remove "/somedirX" and "694-" from the urls. Is this possible to do this with 1 line of code or do i need 1 line for each url redirect?

Thank you

Last edited by zentz; 03-07-2010 at 03:09 PM..
zentz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote