Forum Moderators: phranque

Message Too Old, No Replies

question mark in URI

will I lose variables if rewrite

         

smallcompany

8:49 pm on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Tons of same questions (or almost the same) about question mark in URI that people want to get rid of - tons of answers.

But my concern is about data that is being carried in my variables.

In this case, I don't have dynamic pages, but static only. I use variables so my PHP script(s) can pick valuable data about traffic and store it in flat file or database, and write it into a cookie.

So, if I rewrite URI via some code in .htaccess, so my

page.html?var=something

becomes clean

page.html

Will my "something" be lost and my data not written and passed to cookies?

All programming is done in PHP which is either included into .htaccess via php_value auto_prepend_file or it's triggered via php.ini, depending on server configuration.

This means that when my site gets accessed, the data is grabbed from referring URL (things like keywords and domain names) and written into cookies and MySQL or flat file.

Thanks

jdMorgan

10:55 pm on Sep 24, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you remove the query string, then.... that query string will not be passed to 'page.php'.

I cannot answer further, because I don't know how your site works.

I'd suggest you test it.

Jim

smallcompany

6:51 am on Sep 25, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks very much.

I guess my best bet is to use robots.txt then, as those of my concern obey it (Google).