Hi, I set on my Apache Server a .htaccess file with the follow rules: RewriteRule ^(.*?)/$ pagina.php?param=$1 [L] so I can access from address : http://www.dominio.com/quellochevoglio/ to http://www.dominio.com/pagina.php?param=quellochevoglio So, How can I do the same effect without the last slash char? I would like to redirect http://www.dominio.com/quellochevoglio in http://www.dominio.com/pagina.php?param=quellochevoglio How Rule Do i have to add? Thanks a lot Gianni
heya just remove slash in RewriteRule ^(.*?)$ that what i do RewriteEngine on RewriteRule ^([A-Z]*)$ /index.php?username=$1 but isn't work with numbers.
Try to use one of these commands: redirect 301 /quellochevoglio http://www.dominio.com/pagina.php?param=quellochevoglio or redirect permanent /quellochevoglio http://www.dominio.com/pagina.php?param=quellochevoglio or redirectpermanent /quellochevoglio http://www.dominio.com/pagina.php?param=quellochevoglio
RewriteRule ^(.+)/?$ pagina.php?param=$1 [L] Code (markup): That will redirect: http://www.dominio.com/quellochevoglio/ and http://www.dominio.com/quellochevoglio to http://www.dominio.com/pagina.php?param=quellochevoglio