开发者

regex - URL extension redirect help

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜