I can not reach my sub page through a friendly url

0

O .htaccess

RewriteEngine On
RewriteRule ^imagine/([^/]+)/([^.]+)$ ver_imaginew_agora.php&id=$1&titulo=$2
RewriteRule ^portifolio/([^/]+)/([^.]+)$ ver_portifilio.php&id=$1&titulo=$2

How I pass the link

<a href="portifolio/<?php echo $lista['id']; ?>/<?php echo $lista['titulo']; ?>">

It does not find the page that is there.

    
asked by anonymous 17.11.2015 / 15:07

1 answer

0

There is an error after filenames, instead of using '&' after '.php' you should use '?'. After the first parameter is used the '&'.

The following is the correction:

RewriteEngine On
RewriteRule ^imagine/([^/]+)/([^.]+)$ ver_imaginew_agora.php?id=$1&titulo=$2
RewriteRule ^portifolio/([^/]+)/([^.]+)$ ver_portifilio.php?id=$1&titulo=$2
    
17.11.2015 / 16:50