vikaspa Posted December 9, 2013 Share Posted December 9, 2013 Dear All Can I display display url http://www.mywebsite.com/abcd.php?id=1 as http://www.mywebsite.com/abcd.php/1 or http://www.mywebsite.com/contact.php as http://www.mywebsite.com/contact pls help Quote Link to comment https://forums.phpfreaks.com/topic/284659-display-url-abcdphpid1-as-abcdphp1/ Share on other sites More sharing options...
MDCode Posted December 9, 2013 Share Posted December 9, 2013 Yes, using apache. Quote Link to comment https://forums.phpfreaks.com/topic/284659-display-url-abcdphpid1-as-abcdphp1/#findComment-1461821 Share on other sites More sharing options...
Ch0cu3r Posted December 9, 2013 Share Posted December 9, 2013 Yes, using apache. with mod_rewite module. Quote Link to comment https://forums.phpfreaks.com/topic/284659-display-url-abcdphpid1-as-abcdphp1/#findComment-1461824 Share on other sites More sharing options...
jack2119 Posted December 9, 2013 Share Posted December 9, 2013 Hi, I have used the following code on a .htaccess file and it seems to do the trick for me: RewriteEngine On RewriteRule ^index$ index.php [NC,L] Hope this helps, Jack Quote Link to comment https://forums.phpfreaks.com/topic/284659-display-url-abcdphpid1-as-abcdphp1/#findComment-1461881 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.