riya riya - 4 months ago 9
PHP Question

left side bottom url in php

I want browser url which is in address bar and the url which is shown in left side after hover link should be same

for example in browser my url is like this
http://localhost/test2/article.php/product-1

and at left side the url is like this
http://localhost/test2/article.php?pname=product-1

i want left side url same as browser url.

Answer

You can maby do it with .htaccess file

RewriteEngine On

RewriteRule ^article.php/([a-zA-Z0-9_-]+) article.php?pname=$i

Or something similar. Not sure what you are looking for

Example html

<a href="aricle.php/product-1">Article</a>