This question has already been answered:

How to convert the site URL from http://site.com/news/view/1183 to http://site.com/rozvagy or http://site.com/rozvagy/1183 using .htaccess, where 1183 post id, so id can change when adding other posts, but http://site.com/rozvagy/ remains static? Thank you

Reported as a duplicate by members of Visman , Bald , Nick Volynkin Jul 21 '16 at 5:36 .

A similar question was asked earlier and an answer has already been received. If the answers provided are not exhaustive, please ask a new question .

1 answer 1

You can try to build on the next solution.

 RewriteEngine on RewriteRule ^rozvagy/([0-9]+) /news/view/$1 [L] 

This conversion will intercept http://site.com/rozvagy/1183 and send it to http://site.com/news/view/1183 . The [L] flag will stop further search for transformation rules.