Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- http://www.mysite.com/index.php/controller
- http://www.mysite.com/controller
- RewriteEngine on
- RewriteCond $1 !^(index.php|images|robots.txt)
- RewriteRule ^(.*)$ /index.php/$1 [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^[^/]*.html$ index.php
- match URL into $ with ^/[^/]*.html$
- if matched then set URL = /index.php
- map path into SCRATCH:DOCROOT from /
- set SCRATCH:ORIG_URL = %{URL}
- set SCRATCH:REQUEST_URI = %{URL}
- look for file at %{SCRATCH:DOCROOT}%{SCRATCH:REQUEST_URI}
- if not exists then look for dir at %{SCRATCH:REQUEST_URI}%{SCRATCH:REQUEST_URI}
- if not exists then set URL = /index.php%{SCRATCH:REQUEST_URI}
Add Comment
Please, Sign In to add comment