.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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -