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
https://forums.phpfreaks.com/topic/96398-content-based-on-url-mod-rewrite/
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.

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.