I’m building a website, currently I have a web page [url]www.domain.com/view.php?id=id[/url], I’m asked to replace this with a page on the form [url]www.domain.com/name[/url] , is this something I can do with PHP? or does it need some mod_rewrite rules? or both?
The way I do it, is in my .htaccess file I have <FILES filename> forcetype application/x-httpd-php </FILES> - then I get the directory/base name with PHP, it's probably a bad way I don't know but it works and I like it ?