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 Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.