htaccess file

Content about .htaccess file comes here.

The apropiate rule to redirect domain.com/index.php?page=about to domain.com/about is the following
RewriteEngine on
RewriteRule ^index\.php$ %{QUERY_STRING} [C]
RewriteRule page=(.*) /$1? [R=301,L]

or

rule to redirect domain.com/index.php?page=about to domain.com/page/about is the following
RewriteEngine on
RewriteRule ^page/([[a-zA-Z_-]+)/?$ page/index.php?page=$1 [NC,L] # Handle product requests

Leave a Reply

Your email address will not be published. Required fields are marked *