Jump to content

Identify URL with PHP


nostrodamned

Recommended Posts

Hi all, I am trying to write an if statement that displays a banner depending on the URL that is requested.

Basically I want to do this

 

IF URL is the main page ie http://www.mysite.com or http://mysite.com or /index.php (with no parameters) then

Do this

If it is index.php with parameters or any other page

Do this

 

I hope that makes sense!!

 

Thanks for any help.

Link to comment
https://forums.phpfreaks.com/topic/145055-identify-url-with-php/
Share on other sites

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.