Welcome! Log In Create A New Profile

Advanced

Change underscore to hyphen urls

Posted by fernando 
Change underscore to hyphen urls
May 31, 2009 02:31AM
Hello,

I'm switching to nginx from apache. With the move i have also updated the blog engine.

My blog url used to be:

domain.com/blog/this_is_the_entry.html

and now it is:

domain2.com/this-is-the-entry.html

How can i accomplish this with nginx's rewrite?

Thanks!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 93
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready