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 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions