binay00713 Posted March 16, 2012 Share Posted March 16, 2012 Hello everyone,How can i change the url when I am navigating from one page to another. for example if the existing url is like "www.example.com/product.php?name=xyz&q=service" ,I want to change it to "www.example.com/product/name/xyz/q/service" But I dont want to use .htacces. How can I do it using php functions only? Quote Link to comment https://forums.phpfreaks.com/topic/259054-url-rewrite-without-using-htaccess/ Share on other sites More sharing options...
AyKay47 Posted March 16, 2012 Share Posted March 16, 2012 .htaccess Quote Link to comment https://forums.phpfreaks.com/topic/259054-url-rewrite-without-using-htaccess/#findComment-1328035 Share on other sites More sharing options...
scootstah Posted March 16, 2012 Share Posted March 16, 2012 I think the best you could do without .htaccess is http://example.com/index.php/product/name/xyz/q/service Quote Link to comment https://forums.phpfreaks.com/topic/259054-url-rewrite-without-using-htaccess/#findComment-1328046 Share on other sites More sharing options...
trq Posted March 17, 2012 Share Posted March 17, 2012 You could write a handler within a custom 404 handler but it gets pretty messy. Why exactly are you avoiding mod_rewrite? Quote Link to comment https://forums.phpfreaks.com/topic/259054-url-rewrite-without-using-htaccess/#findComment-1328301 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.