Forum Moderators: open

Message Too Old, No Replies

php parameter question

         

scorpion

4:21 pm on Feb 17, 2003 (gmt 0)

10+ Year Member



I have a page that looks like: abc.com?parameter, it is important to crawl the page so that the parameter appears in the search result, will google ignore it or see it properly?

AthlonInside

4:33 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Google will see it properly! :)

sandalwood

10:40 pm on Feb 17, 2003 (gmt 0)

10+ Year Member



I love PHP:)so.....
If your site is hosted on a Apache server(recomended) then there is a module that you can change your url like that(just change your .htaccess):

index.php?lan=en&set=456 to /en/456/index.html but now you have problem with your inside links so i suggest this format:

index.php?lan=en&set=456 to index_en_456.html this is what i use and believe me the crawling is much easier...!

andreasfriedrich

11:10 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That would be mod_rewrite [httpd.apache.org]. But please note, that this is a one way operation only. It is your responsibilty to make sure that you use nice looking URIs in the pages you generate. All mod_rewrite [httpd.apache.org] will do is turn those nice looking URIs into the ugly form your scripts may require.

Andreas

sandalwood

11:27 pm on Feb 17, 2003 (gmt 0)

10+ Year Member



Yes mod_rewrite it just changes your url to an easy understand format. It's a really useful module for server side pages.

andreasfriedrich

11:36 pm on Feb 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



sandalwood [webmasterworld.com] wrote at 11:27 AM on Feb. 18, 2003 in message #5 [webmasterworld.com]
Yes mod_rewrite it just changes your url to an easy understand format. It's a really useful module for server side pages.

It is just this misconception that I tried to address with my previous post. When used to mask query strings mod_rewrite [httpd.apache.org] will just be used in the second step, i.e. rewriting the maked URI back to the URI with query string. The first step, i.e. masking the query string is you applicationīs job.

BTW there is a great introduction to mod_rewrite available at WebmasterWorld:

An Introduction to Redirecting URLs on an Apache Server [webmasterworld.com]

HTH Andreas