Can I RewriteRule from page index2.php?q=xxx to index2.php#!q=xxx?
I tired code, but still not work. So is it possible? Or I need relay on js window.location.hash, how? Thanks.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^index2.php#!q=([^/]*)$ index2.php?q=$1
</IfModule>
Try this to redirect
?q=to#!q=:If you want to redirect from
#!q=to?q=, you have to use JavaScript: