Jump to content

Recommended Posts

They are in essence the same thing. The server is taking the URL entered by the user, parsing it and deciding which page to actually show them. The only conceptual difference would be whether you wish the user to know they have been redirected. Take you two example URLs. Do you wish...

1.) the user to enter URL 1 and to then be re-directed (ie the address bar in their browser changes) to URL 2?

2.) the user to enter URL 2 and to then be  re-directed (ie the address bar in their browser changes) to URL 1?

3.) the user to enter URL 1 but to see the contents of URL 2 without the URL in the address bar changing?

4.) the user to enter URL 2 but to see the contents of URL 1 without the URL in the address bar changing?

 

The most common use of mod_rewrite is probably option 4 as it allows for so called 'Pretty URLs', ie the user types in example.com/members/bob but the page they are really seeing is example.com/member.php?name=username.

Link to comment
https://forums.phpfreaks.com/topic/184335-change-the-url/#findComment-973183
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.