nonexist Posted December 7, 2008 Share Posted December 7, 2008 What I mean is how it works in Drupal. If you have the clean urls on it would show for registration something like example.com/user/register and for login something like example.com/user/login. I am wondering how you can do this in PHP. I have looked through sections of Drupals core and have come across nothing helpful. Any ideas are much appreciated. Link to comment https://forums.phpfreaks.com/topic/135957-how-to-make-page-request-using-a-url/ Share on other sites More sharing options...
msinternet Posted December 7, 2008 Share Posted December 7, 2008 Your message is a bit brief but I think that what you want is to rewrite URL's to give variables. I.e. www.example.com/val1/val2 would be translated to www.example.com/index.php?var1=val1&var2=val2 To do this you need to use the .htaccess modrewrite functions. They are a bit tricky but there are loads of tutorials or someone on here may help you if you can give specifics. Martin Link to comment https://forums.phpfreaks.com/topic/135957-how-to-make-page-request-using-a-url/#findComment-708724 Share on other sites More sharing options...
nonexist Posted December 7, 2008 Author Share Posted December 7, 2008 That is right on what I needed. Do you know if this is how drupal's system runs. Link to comment https://forums.phpfreaks.com/topic/135957-how-to-make-page-request-using-a-url/#findComment-708743 Share on other sites More sharing options...
premiso Posted December 7, 2008 Share Posted December 7, 2008 It is the only way to really do it, so chances are yes it is. Link to comment https://forums.phpfreaks.com/topic/135957-how-to-make-page-request-using-a-url/#findComment-708746 Share on other sites More sharing options...
nonexist Posted December 7, 2008 Author Share Posted December 7, 2008 Sweet. thank's for your help. Link to comment https://forums.phpfreaks.com/topic/135957-how-to-make-page-request-using-a-url/#findComment-708747 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.