最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

301 redirect after removing language directories

programmeradmin3浏览0评论

I have Wordpress webpage with 3 languages. All articles are in different directories, but has totally same names:

  • sample/article1.html
  • sample/us/article1.html
  • sample/uk/article1.html

I want to delete "/us" and "/uk" directories and leave only . Is it any "easy way" to write redirection rule in .htaccess, that all "/uk" and "/us" articles requests be redirected to main articles?

发布评论

评论列表(0)

  1. 暂无评论