Dynamic URL to Stay the Same on all Pages
Posted
by
JCBiggar
on Stack Overflow
See other posts from Stack Overflow
or by JCBiggar
Published on 2013-06-27T04:12:58Z
Indexed on
2013/06/27
4:21 UTC
Read the original article
Hit count: 160
so when my url looks like this:
http://mywebsitehere.com/?kw=1
I am using this code below to do stuff with it:
<?php if( isset($_GET['kw'] )){
//my div here
} ?>
It works great, and I am getting exactly what I want on the page. However, any link I click on that page will change the url structure and remove the ?kw=1
. Is there anyway to add the ?kw=1
to every link for that session? I have no clue how to do this? Any ideas or answers would be great! Thanks!
Let me know if I need to give more to my question.
© Stack Overflow or respective owner