Simple rewrite my URLs

Topics: User Forum
Jun 14, 2012 at 2:55 PM

Hi there,

 

I am new to IIRF and can't figure out how to rewrite the following URLs to the desired ones:

 

Oiriginal URL

http://www.domain.com/mydirectorypath

While "mydirecotrypath" can be one or more directories deep, such like

http://www.domain.com/mydirectorypath/subdir/subsubdir

etc.

 

I want to rewrite them to

http://www.domain.com?article=/mydirectorypath/subdir/subsubdir

I've tried:

RewriteRule ^(.*)$ /content/index.cfm?article=/$1 [L]

But I receive a 404 if I click on a link. The settings has been made in the iirfGlobal.ini because I want it to be server wide.

Hope anyone can help me out on this.

Thx

Hurga