Link redirect into this :
http://localhost/D:/XAMPP/htdocs/Project/search.php
htaccess file location :
http://localhost/Project/
Code in htaccess file :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [R=301]
But I want this url :
http://localhost/Project/search.php
New contributor
Shahariar Hasan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.