Sometimes it may be necessary to have a .htaccess file to set up URL redirects, also called ‘friendly URLs’.

The .htaccess file can be published using any FTP program. It should be published in the folder where the effect is desired. If it is for the entire website, it should be published in ‘/var/www/html’.

Here’s an example of a .htaccess file for friendly URLs:

 

#Redireccion
RewriteEngine On
RewriteBase /
RewriteRule ^ friendly-test$          mywebsite.php?param1 = xxxx&param2= yyyy& [NC]