Home Page Redirect

Discuss everything related to PHP Hotel Site. All versions. Any questions related to the PHP Hotel Site developing or using should be posted to this forum.

Moderator: alexandrleonenko

maurito
Newbie
Newbie
Posts: 7
Joined: Mar 2nd, '16, 19:27

Home Page Redirect

Postby maurito » Mar 18th, '16, 11:14

Hi

when a session end, I will be redirected to the index.php, but I use this script in a Wordpress website, and it is not convenient to be redirected to the standard homepage of the script. I can change this?

Thanks
Maurito

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Home Page Redirect

Postby ne_moj » Mar 23rd, '16, 11:20

Could you further explain what is happening, so we can help you.

P.S.:
You can try to make changes for function redirect_to in the file "include/function.common.inc.php" or did change function DoLogout in the file "include/classes/Login.class.php"

maurito
Newbie
Newbie
Posts: 7
Joined: Mar 2nd, '16, 19:27

Re: Home Page Redirect

Postby maurito » Apr 28th, '16, 15:29

Hello

I have installed the application to https://subdomain.domain.com and I use the booking form with an iframe in a Wordpress installation (www.hotelname.com).

When a session end, you are now redirected to https://subdomain.domain.com, but this is not convenient in my case, cause I need to redirect the hotelier to the admin panel (https:///subdomain.domain.com/index.php?admin=home). The problem is that https:///subdomain.domain.com/ is a Portal webpage when you are logged out, and the Admin Panel when you are logged in.

So for me is better that when a session ends you will be redirected to the Admin Panel Login WebPage. Or if it is not possible to www.hotelname.com

I hope it is clear now

Thank you
Maurito

maurito
Newbie
Newbie
Posts: 7
Joined: Mar 2nd, '16, 19:27

Re: Home Page Redirect

Postby maurito » Apr 28th, '16, 15:44

Hi

I have put this string in the .htaccess file, it is a solution, maybe it is not so elegant, but it works. Maybe it is usefull for someone

redirect 301 https://subdomain.domain.com https://subdomain.domain.com/index.php?admin=login

If you have a better solution, pls post here.

Thank you
Maurito

ne_moj
Master
Master
Posts: 243
Joined: Jan 1st, '16, 14:11

Re: Home Page Redirect

Postby ne_moj » Apr 28th, '16, 18:29

Hello Maurito

A simple and reliable way, in my opinion there is nothing wrong


Return to “ApPHP HotelSite / uHotelBooking Talk {developers/users}”