Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!