- All visits to ./whatever/anything/maybe go to index.php?p=whatever,anything,maybe
- Does not affect URLs going to the ./bin dir
- Does not affect URLs with file extensions, only affects urls like http://mysite.com/about not [url]http://mysite.com/feed.xml[/url]
- I also want it to work for infinite dirs, like it could be ./mydir or ./mydir/number2 or even ./mydir/number2/number3 and so on.
Here is what I got so far, but it doesn't really work and as you can see it only takes into account the second item on my list:
- Code: Select all
RewriteEngine on
RewriteRule ![^(bin)]$ index.php?p=$1 [L]
This is for a new PHP based CMS I have been working on. Thank you in advance for any help.