Forum Moderators: phranque
I would want to redirect a folder to an other which is on an other website.
[mysite.com...] > [other.com...]
1)° How to write this in .htaccess?
2°) Where to put .htaccess file? Root or in the folder /picture/ or in /tools/?
3°) Will this affect Google or other spiders. I mean, will my page rank down as it is only pictures which are redirect?
I would want to redirect a folder to an other which is on an other website.
[mysite.com...] > [other.com...]
1)° How to write this in .htaccess?
Introduction to mod_rewrite [webmasterworld.com] ;)
2°) Where to put .htaccess file? Root or in the folder /picture/ or in /tools/?
You could put it in either place. Some people like to "localize" their htaccess files for efficiency of execution, and some like to "centralize" them for efficiency of maintenance.
3°) Will this affect Google or other spiders. I mean, will my page rank down as it is only pictures which are redirect?
I doubt that it will have any effect, but who can be sure?
Jim
which means [otherhost...] via external redirection (the [R] flag is redundant)
In the same .htaccess in the root pass, if I write:
RewriteRule Afolder/Bfolder/(.+) [otherdomain.com...] [L]
or
RewriteRule ^iere\.zip$ [otherdomain.com...] [L]
or
redirect /Afolder [otherdomain.com...]
It works.
Which isn't working, is:
RewriteRule ^/Afolder(.*) [otherdomain.com...] [R,L]
What's wrong?
RewriteRule ^images(.*) [myotherdomain.com...] [L]
property of an image on mydomain.com is:
[mydomaine.com...]
instead of:
[myotherdomain.com...]
In fact, I forgot to clean my I.E cache and :
RewriteRule ^images(.*) [myotherdomain.com...] [L]
is working perfectly.
Thank's for the help and sorry to forget the cache.