Jump to content

Content based on url (mod rewrite)


jonnyw6969

Recommended Posts

Hi all,

 

Im currently building a site in php and i have 1 page which is called by several differnet urls using mod rewrite. I just wondered if there was any way of php know which url is used to display my page and display a different title of each different url used.

 

Many thanks for any help

 

Jon

Link to comment
Share on other sites

my understanding is that Apache puts the url through mod_rewrite before sending it to PHP, so PHP can't tell what the URL was before mod_rewrite. i saw a post with a similar issue a while back; don't know if it was ever resolved. your best bet may be to mod_rewrite with a GET value to indicate which URL was used.

Link to comment
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.