Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

142
Vistas
Blogspot Redirect

Is this possible to always redirect

from

www.name.blogspot.com/title

to

www.name.blogspot.com/p/title.html

For example, when someone type www.name.blogspot.com/title

so it is automatically redirect to www.name.blogspot.com/p/title.html

maybe need some javascript that always auto-generate to convert incoming url to the correct url.

usually, I used this script below, but it still manually method, so edited one by one if there is many links.

<script>
if(window.location.href == &#39;https://www.name.blosgpot.com/title&#39;)
{
window.location=&quot;https://www.name.blosgpot.com/p/title.html&quot;;
}
</script>

Thankyou for your help

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Idealy you want to do this in the server, for example, if you are using Nginx, you can rewrite incomming requests with a given pattern URL to another path:

server{
...
    location /title {
        rewrite ^/(.*)$ https://www.newsite.com/p/$1 redirect;
    }
...
}

But if you need to do it on the client, you can use a similar logic, matching patterns and "rewriting" the URL, something like this:

const myPattern = /https:\/\/name.blosgpot.com(.*)/
const path = window.location.href.match(myPattern)[1]
if (path) {
  window.location.href = "https://www.name.blosgpot.com/p" + path
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda