Forum Moderators: phranque
I have old blog
[abc...]
and I want to redirect all requests* to
new blog
[abc...]
What is the redirect I need to add to my htaccess?
---------
*
[abc...]
[abc...]
(anything ANY requests to /news-blog/(anything here) just redirect to HOMEPAGE of new blog)
(Please see our Forum Charter [webmasterworld.com] if the reason for this question isn't clear.)
Thanks,
Jim
RewriteRule ^old-blog(.*)$ http://www.example.com/new-blog/ [L,R=301]
-----
its works but hit 302 one time under google search when u click the old-blog/(link) before going to 301.
[edited by: jdMorgan at 5:33 am (utc) on Jan. 29, 2010]
[edit reason] example.com [/edit]
RewriteRule ^old-blog/(.*)$ http://www.example.com/new-blog/$1 [R=301,L]
-or-
RewriteRule ^old-blog/ http://www.example.com/new-blog/ [R=301,L]
-or-
RewriteRule ^old-blog/(.*)$ http://www.example.com/new-blog/$1? [R=301,L]
-or-
RewriteRule ^old-blog/ http://www.example.com/new-blog/? [R=301,L]
Jim