I want to redirect from a old url which still appears in the google search to the new one. the old url is this:
http://www.marionettecolla.org/file%20_mostra_milano/mostra_marionette-milano.htm
and I want to redirect it to the home page:
http://www.marionettecolla.org/
I used this in my .htaccess:
Redirect http://marionettecolla.org/file\ _mostra_milano/mostra_marionette-milano.htm http://marionettecolla.org/
but I am getting Error 500... Does anybody know how to solve this problem?
this should works:
Redirect 301 "http://marionettecolla.org/file _mostra_milano/mostra_marionette-milano.htm" http://marionettecolla.org/
just put it between pair of double-quotes " ... "
Update:
This is another way also, should works for any kind of spaces:
redirectMatch 301 http://marionettecolla.org/file[\s]_mostra_milano/mostra_marionette-milano.htm http://marionettecolla.org/
You can't just escape space like that "\ ". The proper way to do it is "\s".
Although I am not sure if putting "\s" in place of space in htaccess file would do the trick. Please let me know if it worked.
Try this it works even we tested:
redirect 301 "/file _mostra_milano/mostra_marionette-milano.htm" http://marionettecolla.orgx/" http://marionettecolla.org
alapati
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With