.htaccess - RedirectMatch htaccess redirect folder to folder -


For example, how can I redirect the folder to the folder:

www.domain .com / folder / W-search to www.domain.com/stackoverflow/w-search

I try:

RedirectMatch 301 ^ / Folder /(.*)) / stackoverflow / $ 1

but it guides me:

http://www.domain.com/ Stackoverflow / w-search? / Folder / W-search

How can I improve it?

This should work:

  RewriteEngine On RewriteRule ^ folder / (. *) / Stackoverflow / $ 1 [R = 302, L]   

change

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -