anyone know how i can rewrite: http://www.domain.com/dir1/dir2/seed and http://www.domain.com/seed to http://www.domain.com/dir1/dir2/index.php?x=seed and http://www.domain.com/index.php?x=seed
Something like this may work, not exactly sure, although I do know the first rule will work. http://www.doriat.com/ has alot of information on this, and help with it. Options +FollowSymLinks RewriteEngine On RewriteCond %{SCRIPT_FILENAME} -f [OR] RewriteCond %{SCRIPT_FILENAME} -d RewriteRule .* - [L] RewriteRule ^([^/]+)/?$ /index.php?x=$1 [QSA,L] RewriteRule ^([^/]+)/([0-9]+)/([0-9]+)/?$ /$1/$2/index.php?x=$3 [QSA,L] Code (markup):