Forum Moderators: coopster

Message Too Old, No Replies

Build directory on php on the fly or build static pages

which is better?

         

penfold25

5:15 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



Dear Webmasterworld,
I am making a niche directory

Because i am making data on the fly with php and not building the directories am i affectng the chance to get google or other SE's and list my data properly, plus if i want to give PR to other people i think not having a directory built maybe i
cannot give them PR properly.?

What do you think
which one is better?

jeremy goodrich

6:26 pm on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



(fyi - moved your post)

It seems that you are asking about using PHP to build your niche directory...ok, well as long as the search engine finds links to your stuff - and you use apache to make the PHP to appear static instead of dynamic - it will be indexed just fine.

penfold25

6:35 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



ok, but i would prefer
1)www.domain.com/subdirectory

rather then
2)www.domain.com/search.php?catergory1 etc

is there a way to make the above 2) be like number 1?

Birdman

6:38 pm on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



>>is there a way to make the above 2) be like number 1?

Absolutely! Just as jeremy_goodrich said, use Apache mod_rewrite to make them appear static.

penfold25

6:47 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



thanx very much

but for example, can i make it so

if i type in

www.domain.com/subcatergory1

it will go to the correct path and retreive right results.
eg from www.domain.com/search.php?catergory1

because on search result id rather it appear as
www.domain.com/subcatergory1

when it retrieves info from the spider will it pull the domain, www.domain.com/subcatergory1 or www.domain.com/search.php?catergory1

?

Birdman

7:17 pm on Jun 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Yes, mod_rewrite will do exactly what you desire. Read these pages and you will be in good shape. If you have bumps along the way, you can ask here(actually, in website technology issues [webmasterworld.com] forum).

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

A Users Guide to URL Rewriting with the Apache Webserver [engelschall.com]

olwen

7:24 pm on Jun 27, 2003 (gmt 0)

10+ Year Member



My database driven directory site is very well spidered. I don't use modrewrite, I force execution of a script by PHP and parse out the parameters.
As well as disguising parameters I deliver the data randomised to real people, but in alphabetic order to spiders. The subscribers requested the random order.