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

136
Views
Changing URL using htaccess for seo

I am trying to make SEO friendly, my URL is https://example.com/blog/single.php?blog=BLOG_TITLE&id=27, I want to make it https://example.com/blog/single.php/BLOG_TITLE.

From id in URL, I am fetching blog details using ajax from the database.

code I wrote to redirect page

function blogSingle(heading, id ){
            if(id){
                location.href = "https://example.com/blog/single.php? 
                 blog="+heading.trim().replace(/\s+/g, '-')+"&id="+id+""
            }
        }

Please help me to fix this.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

If you have a .htaccess file, I assume you are using Apache.

You may want to use the mod_rewrite module to realise URL rewriting.

Here is an example how to do that: https://www.digitalocean.com/community/tutorials/how-to-rewrite-urls-with-mod_rewrite-for-apache-on-ubuntu-16-04

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!