简体   繁体   中英

URL Redirection issue for hash(#)

I am sending mail using different file. My Main URL is something like this http://www.examplehasset.com/enquiry-form.php#quote_page

from this page, i send enquiry. and after sending mail I wrote header loaction to redirect thank you page.

header("Location: enquiry-thanks-you-page.php"); exit; so this line is working proper to redirect me on thank you page. but one issue is that character after (#) is also appended to my URL. so my thankyou page URL is looks like this. http://www.examplehasset.com/enquiry-thanks-you-page.php#quote_page

I dont want #quote_page in URL. So let me know what is the method to do so? I just want the URL as follow. http://www.examplehasset.com/enquiry-thanks-you-page.php

尝试仅使用#重定向[解决方法] 。( 查看它是否适用于所有浏览器 )。

header("Location: enquiry-thanks-you-page.php#"); //See if it works

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM