How do I rewrite this rule to redirect everything back to the index or server_root?
If there is a request for say, www.site.com/articles/some-article.php, the somearticle.php should be re-routed back to the index page. I also don't want to have the url showing the "index" portion of the URL. site.com/index is where everything should be at.
RewriteRule ^(.*)$ index.php?dk=$1 [L,QSA]
OK, I see now what is happening and I think it may help someone to help me better. With my rule, exactly as it is above in my example, I can get the following back into my index.php file with no problems.
http://site.com/index/somethin/else/here/test.php
Here is what I need: I need to remove the index portion of the url. This url should be rewritten as: http://site.com/somethin/else/here/test.php
I hope this helps.