301 Redirect for the url which contains space

by satheeshkumar 2014-03-14 12:27:02

301 Redirect for the url with space ,

In order to redirect the URL's which contains space to another url,


For Eg: you have an url which contains space
RewriteRule ^http://example.com/file%20_the%20milano.html$ http://example.com/index.html [R=301,L]



Replace the %20 with [s] to fix the issue as,


RewriteRule ^http://example.com/file[s]_the[s]milano.html$ http://example.com/index.html [R=301,L]

1954
like
0
dislike
0
mail
flag

You must LOGIN to add comments