Jump to content

How to make page request using a url


nonexist

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.