Welcome to WebmasterWorld Guest from 18.104.22.168
It works perfectly well, i.e., the mysite.com/foo retrieves the the database entry "foo" (a dictionary entry).
But the "foo" page contains some hyperlinks to other entries, say to "widget," and when the page is retrieved, the link to widget becomes:
Is there a way to eliminate this self referencing (foo?q=) and have only the widget (mysite.com/widget) when the widget link on the foo page is clicked?
Thank you in advance.
In your database, instead of having the links as <a href="/index.php?q=varId"> have them as <a href="/varId">.
The mod_rewrite does not rewrite url's coming from the database, it only interprets one URL and matches it with another - but you have to point it to the right match.