I have changed the URL using the .htaccess file. When go to that URL it gives Error 404 - Not Found
.htaccess code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^Product/Details/([^/]*)/(.*)/?$ index.php?u=$1&p=$2 [QSA,L]
Change aaa.com/Product/Details/index.php?u=aa&p=bb
to aaa.com/Product/Details/aa/bb
.
How to avoid ERROR 404 and get URL data by $_GET['u']
and $_GET['p']
or using other method.