Create a sub directory on aws

0

Hi, i want create a sub-directory on domain name like <www.example.com/fr>. How i can make this ? I'm waiting to your idea of the roadmap to taking

  • Hi.
    Where are you hosting your website? EC2?

1 個回答
1

Hello,

I don't think you can create domain like <www.example.com/fr>, As far as I understand that you would like to reach your domain like www.example.com/fr, So in this case, you can use redirection from your webserver/hosting-server/Ec2/anyserver, Here are the steps if you would like a redirection to the path /fr

You just need to add the DNS record** "A"** into your hosted zone like ** www.example.com --A Record-- IP address**, Redirection can be taking care by the Webservers or Load balancers, Please look at the below links to do the configuration based on your Webservers.

Redirection to /fr using Nginx:

Redirection using Apache:

Redirect using AWS ALB:

profile picture
專家
GK
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南