I'm trying to set Semantic URLs via .htaccess (on local server). I've already replaced index.php?id=# with page# by the means of:
RewriteRule ^/?page([0-9]+)$ index.php?id=$1
It is working. That means that .htaccess is connected properly and runs. Now I want to "glue" the produced link with the original one. That is, to redirect from index.php?id=# on page#. Can't deal with it.
For example, I take only the page with id=0 and make this:
RewriteCond %{HTTP_HOST} ^site\.loc\/index\.php?id=0$ [NC]
RewriteRule ^(.*)$ http://site.loc/page0$1 [R=301,L]
Tell me, please, what is wrong with the rows above.