Forum Moderators: phranque

Message Too Old, No Replies

RewriteRule(s) for non-existing files and dirs

         

adcworks

6:54 pm on Oct 1, 2005 (gmt 0)

10+ Year Member



Hi,

I am in need for some RewriteRule expressions to cater for URLs of the following form

http://www.example.com
http://www.example.com/abc
http://www.example.com/abc/file.html

http://sub.example.com
http://sub.example.com/def
http://sub.example.com/def/file.html

In all these cases, the URL should be rewritten simply to

/index.php

Also, in the case of the URLs like

http://www.example.com/abc
http://sub.example.com/def

I need to ensure a trailing slash is added to these.

Your advice appreciated.

[edited by: jdMorgan at 1:22 am (utc) on Oct. 2, 2005]
[edit reason] example.com [/edit]