Change of URL website pages



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



  • You can try to get away from the next decision.

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

    This transformation will intercept http://site.com/rozvagy/1183 and send him to http://site.com/news/view/1183♪ Flag [L] Stop further searching for change rules.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2