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 réponse
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
EXPERT
GK
répondu il y a 2 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions