webmaster1 Posted November 28, 2008 Share Posted November 28, 2008 Hi All, 1) I want my links to read www.website.com/page rather than www.website.com/page.php or www.websitename.com?foo=bar Notice the suffix is missing. Can this be achieved through PHP? 2) My index page is a php page. Will all browsers route to this automatically or should I set up a redirect? Link to comment https://forums.phpfreaks.com/topic/134605-solved-php-links-with-a-neater-naming-convention/ Share on other sites More sharing options...
genericnumber1 Posted November 28, 2008 Share Posted November 28, 2008 With apache this would be achieved using mod_rewrite in an htaccess file. Link to comment https://forums.phpfreaks.com/topic/134605-solved-php-links-with-a-neater-naming-convention/#findComment-700850 Share on other sites More sharing options...
webmaster1 Posted November 28, 2008 Author Share Posted November 28, 2008 ...but not achievable through PHP? Link to comment https://forums.phpfreaks.com/topic/134605-solved-php-links-with-a-neater-naming-convention/#findComment-700853 Share on other sites More sharing options...
genericnumber1 Posted November 28, 2008 Share Posted November 28, 2008 It's server dependent, not language dependent. Link to comment https://forums.phpfreaks.com/topic/134605-solved-php-links-with-a-neater-naming-convention/#findComment-700854 Share on other sites More sharing options...
webmaster1 Posted November 28, 2008 Author Share Posted November 28, 2008 Ah, now I follow you. http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html Thanks! Link to comment https://forums.phpfreaks.com/topic/134605-solved-php-links-with-a-neater-naming-convention/#findComment-700856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.