开发者

regex - URL extension redirect help

开发者 https://www.devze.com 2023-04-07 15:15 出处:网络
I have a couple开发者_开发知识库 of domain extensions that I\'d like to redirect to specific pages.

I have a couple开发者_开发知识库 of domain extensions that I'd like to redirect to specific pages. Like example.de has to redirect to example.de/de/ and example.fr to example.fr/fr/.

How can I achieve this? I'm new to regex.


You will edit your .htacess file and put something like to :

RedirectMatch permanent example\.de/$ http://example.de/de
RedirectMatch permanent example\.fr/$ http://example.fr/fr
....
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号