.htaccess - 301 Redirect Directory But Not Its Content -
i want redirect mysite.com/blog/ mysite.com/blogs/. redirect should not apply other pages inside blog directory. example, mysite.com/blog/article-1 should not redirect mysite.com/blogs/article-1
first tried simple 301 redirect unfortunately redirecting content. tried following code didn't work out.
rewritecond %{request_uri} ^/blog/$ rewriterule ^(.*)$ http://www.easydestination.net/blogs/ [l,r=301]
any idea how htaccess?
Comments
Post a Comment