.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

c# - passing input text from view to contoller with FacebookContext using Facebook app -

ios - Does Core Data autoupdate a many to many relationship on saving -

Calling a C++ function from C# by passing a string with variable size to it -