jonnyw6969 Posted March 16, 2008 Share Posted March 16, 2008 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 More sharing options...
BlueSkyIS Posted March 16, 2008 Share Posted March 16, 2008 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 https://forums.phpfreaks.com/topic/96398-content-based-on-url-mod-rewrite/#findComment-493401 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.