This rewrite rule works fine for domain.com/news but I would like be able to parse multiple levels into variables like domain.com/news/2012/party/zeke etc
I tried experimenting with the regex but failed badly.
RewriteEngine on
RewriteBase /
RewriteRule ^([^/\.]+)/?$ page.php?page=$1 [L]
Also tried solutions here: mod_rewrite with multiple variables
using mod_rewrite to simulate multiple sub-directories
// EDIT: It seems I can just add one rule per level BUT is it possibel to have one rule that does all levels?
RewriteRule ^([^/\.]+)/?$ /page.php?page=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ /page.php?page=$1&sub=$2 [L]