.htaccess image folder redirect from other server -


so need .htaccess file allow me redirect images link folder (wp-content/upload/) different site (http://widesigner.com.br/alessandra/) 1 (http://www.alessandratonisi.com.br/site/)

basically it's redirect image links, example:

http://www.widesigner.com.br/alessandra/wp-content/uploads/2012/03/mg_6058-600x400.jpg http://www.widesigner.com.br/alessandra/wp-content/uploads/2012/03/mg_9515.jpg 

to

http://www.alessandratonisi.com.br/site/wp-content/uploads/2012/03/mg_6058-600x400.jpg http://www.alessandratonisi.com.br/site/wp-content/uploads/2012/03/mg_9515.jpg 

so need redirect website domain 1 specific folder. don't know if next line solve problem, don't think solution since didn't test it.

rewriteengine on rewritecond %{request_uri} ^/alessandra/(.*)$ rewriterule ^(.*) https://www.alessandratonisi.com.br/site/%1 [r=302,nc] 

here lot of examples lead correct answer: https://gist.github.com/scottphillips/1721489.

update:

# begin wordpress <ifmodule mod_rewrite.c> rewriteengine on  rewritecond %{request_uri} ^/alessandra/(.*)$ rewriterule ^(.*) https://www.alessandratonisi.com.br/site/%1 [r=302,nc]  rewritebase /site/ rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /site/index.php [l] </ifmodule> # end wordpress 

Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - .htaccess mod_rewrite for dynamic url which has domain names -

Website Login Issue developed in magento -