url rewrite using htaccess?

86 views Asked by At

I have a number of url I would like to change using htaccess could someone kindly help me out with the code so i can create some sef, i have 50 other pages to change so just look at the right code to add to htaccess, i called my host useless, and developer is not sure, but google needs this so any help would be greatful!

Current url: http://www.website.com/job-search/simple-search/guest/jobsby_criteria/jobcateg/1-accountancy-jobs

New url: http://www.website.com/accountancyjobs

1

There are 1 answers

5
anubhava On

You can use this code in your DOCUMENT_ROOT/.htaccess file:

RewriteEngine On

RewriteRule ^.+?\d+-([^-]+)-(jobs)/?$ /$1$2 [L,NC,R=302]