Page 1 of 1

Replacing character with mod_rewrite & .htaccess

Posted: Mon Dec 07, 2009 8:47 am
by konsument
Hi all,

according to this thread: http://forum.cmsmadesimple.org/index.ph ... 08.15.html

Id like to set up my .htaccess file to replace underscores with slashes.

Lets say I have http://www.domain.com/index.php?page=ho ... each-hotel

I need: www.domain.com/holiday-resorts/beach-hotel.html

Could somebody please help me to get this done?

Re: Replacing character with mod_rewrite & .htaccess

Posted: Mon Dec 07, 2009 8:55 am
by Rolf
IRC wrote: [09:40] i need to replace a underscore character with a slash
[09:40] but I got no idea how to write this down in htaccess
[09:43] | do a google search for regex[/b]
;) Rolf