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 Quote 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. Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/263337-website-pages-question/#findComment-1349642 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.