Replacing character with mod_rewrite & .htaccess

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
konsument
Forum Members
Forum Members
Posts: 137
Joined: Thu Oct 26, 2006 9:20 am

Replacing character with mod_rewrite & .htaccess

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Replacing character with mod_rewrite & .htaccess

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “CMSMS Core”