Jump to content

Header('location: ') Question


slj90

Recommended Posts

So I have a header('Location: ') in my script and it works fine if I enter something like

 

header('Location: profile.php ')

 

It will go to http://www.example.com/profile.php

 

But I am trying to make it go to the homepage of the site which is just http://www.example.com. I don't want it to show index.php or default.php.

 

So my question is what do I need to put in header('Location: ') for it to direct back to the homepage http://www.example.com

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/270292-headerlocation-question/
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.