linux - 301 redirect urls -


i'm trying redirect old url new 1 using 301

i need example of rewritequerystring following 301? http://www .example.com/search/?depid=1&typecatid=1 following http://www.example.com/mens/clothing

so when type in long url in browser, redirected new, shorter url

any ideas?

rewriteengine on rewriterule ^search/\?depid=1&typecatid=1$ /mens/clothing [r=301] 

^ try that.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -