RewriteEngine on RewriteBase / RewriteRule ^([A-Za-z0-9-]+)/?([A-Za-z0-9-]+)/?([A-Za-z0-9-]+)/?$ index.php?action=$1&cmd=$2&cmd2=$3 [L] ErrorDocument 404 /donothing.php
On my free host (http://www.000webhost.com/), they use Virtual directories, so i need the rewriteBase. Problem is, it goes to index/index.php if the URL has a trailing slash.
IE: http://jbrace.net16.net/index/ Is the main page. From there it should mod rewrite to http://jbrace.net16....hp?action=index
That one works, however when It is supposed to go to /login/ (which is /index.php?action=login), it goes to /index/index.php?action=login
I've tried editing things, but unless I want a million subdirectories, i don't wanna add an index folder into an index folder etc...
I had this working fine on another server (which i lost =/), but ow that i've moved, it refuses to work.
Anyone who can help solve this will get a thanks =)