I have made a search engine for my website and I want to know how to make the URL like Google Search or YouTube where it has...
http://sitename.com/search?q=search+query
I can only get it like this...
http://sitename.com/search.php?q=search+query
I want to find out how to take off the '.php'. putting it in a folder called search just mean it's like this...
http://sitename.com/search/?q=search+query
Hope you know what I mean and have enough information to help. Thanks.
Put this code in your .htaccess
under DOCUMENT_ROOT
directory or in httpd.conf:
Options +MultiViews
Once that is done apache will support:
http://sitename.com/search?q=search+query
by executing search.php