jason360 Posted May 29, 2012 Share Posted May 29, 2012 Hey guys, Just building a site using php. I would like to know how to create pages without having to make ".php" links for every page. For example I want to build the site to be as follows: www.mysite.com/products instead of www.mysite.com/products.php. (Further example www.mysite.com/products/headphones ) An example of what I am looking for is as follows: http://www.starbucks.ca/store-locator Any idea how starbucks is doing this? It isn't making a separate folder and index for every page is it? Thanks in advance! Jason Link to comment https://forums.phpfreaks.com/topic/263337-website-pages-question/ Share on other sites More sharing options...
Drummin Posted May 29, 2012 Share Posted May 29, 2012 It isn't making a separate folder and index for every page is it?I would say yes it is. Link to comment https://forums.phpfreaks.com/topic/263337-website-pages-question/#findComment-1349579 Share on other sites More sharing options...
requinix Posted May 29, 2012 Share Posted May 29, 2012 If all you want to do is omit file extensions then Options +MultiViews in a .htaccess is enough. There's also a mod_rewrite solution that's more annoying. If you actually want to change the URLs into something different then "URL rewriting" is what you should be searching for. Link to comment https://forums.phpfreaks.com/topic/263337-website-pages-question/#findComment-1349642 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.