1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Is it possible to add redirect (301) inside angular app?

Discussão em 'Angular' iniciado por johnek smith, Outubro 14, 2024.

  1. johnek smith

    johnek smith Guest

    Let's say my app is running on domain.com and most of links in the internet to this site looks like this: domain.com/:id.

    I want to improve SEO a little bit and add redirects (301): domain.com/:id => domain.com/:title. But to get title for id I have to run angular app and check this in DB.

    So what I want to do is:

    1. User go to domain.com/:id
    2. Check title for id from url inside angular app
    3. Redirect user with 301 status to domain.com/:title

    Continue reading...

Compartilhe esta Página