I want users who type
http://www.example.com/word-of-the-day
to be taken to
http://www.example.com/index.php?page=word-of-the-day
But I want
http://www.example.com/word-of-the-day
to be shown in the URL for the user.
What should I do in my .htaccess? I tried but the regular expression and the syntax of RewriteRule is way too complicated for me to figure out how to do it.
Any help will be appreciated.
Edit:
Also, how can I say this in htaccess -
if they type http://www.example.com/word-of-the-day
, take them to http://www.example.com/index.php?page=word-of-the-day
or if they type http://www.example.com/something-else
, take them to http://www.example.com/index.php?page=something-else
or else, just take them to the URL they typed.