views:

52

answers:

4

In MyBB forums you must have seen that all those threads are stoed as forum.com/Thread-Name-of-the-thread So now this is static right ?

So now i have a site which has

blog.com/search.php?=SEARCHED+TEXT

So now how do i save this search so that Google can find out this page on my site ?

Indirectly what i mean to say is how i can i make

blog.com/SEARCHED+TEXT.html

+1  A: 

If you want Google to index this search page you have to tell Google it exists, either through a Sitemap or by putting a link on your site that Google can crawl. Google did fill in forms in the past, but I am not sure if they still do and afaik, they only did on a selected few sites.

To make the search static, you have to render the page once and store it in a file. Whether you do that manually by simply calling up the file in your browser and then saving it or by means of a Caching System is up to you.

Gordon
Yes,How do i store the file ?
5416339
@5416339 have a look at the linked questions and answers for Caching System. But like others already pointed out, you might want to get a clear idea whether that is really what you are looking for.
Gordon
+3  A: 

"So now this is static right?" No. Just because the URL doesn't end in .php or similar doesn't mean it's static. It's time for you to learn the wonders of mod_rewrite:

http://www.workingwith.me.uk/articles/scripting/mod_rewrite

beamrider9
+2  A: 

Your first example isn't static at all. It's just using a tool to route the request based on the URL.

All you need to get the same functionality is to investigate URL Routing in PHP and implement it in your application as well.

Justin Niessner
A: 

I guess you should do some research on URL rewriting. Armed with this knowledge, you can put links in your website similar to these:

blog.com/searches/searched%20text.html

and let your server map these requests to:

blog.com/search.php?searched+text
Salman A
THATS EXACTLY WHAT I WANT !!
5416339
Well you should start researching on URL Rewriting, good luck!
Salman A