need to 301 redirect like that - www.domain.com/dir/index.php will be redirected to www.anotherdomain.com/index.php and all the other pages as well, for example www.domain.com/dir/forumdisplay.php?f=92 will 301 redircet to www.anotherdomain.com/forumdisplay.php?f=92 and all the posts and threads as well.. vBulletin board, I basically want that a user that will try to teach a page in the board on the dir', will be redirected to the same page in the new domain (301) thanks a lot for the help.
it doesn't work.. PHP: RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?atraf-f.net\.net/upload$ [NC] RewriteRule ^(.*)$ http://www.atraf-f.net/$1 [R=301,L] i've edited it, i need it to redirect all the pages from in a directory to an other domain name, here i'vw just tested the code so i've used the same domain, what to do ?
still not working.. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?atraf-f\.net/upload$ [NC] RewriteRule ^(.*)$ http://www.atraf-f.net/$1 [R=301,L]
I am not sure why its not working but when I visited the forum I saw you are setting up the new forum and so why not just move the files from the upload directory to the parent one. Unnecessary redirect would not help.
i have another board www.atraf-f.net/or i bought a new domain for it - www.israelbody.org and i want all the users to be redirected to the new domain (+ all the google pages)