Webmaster (IL)
Next Step Systems
US-IL-Chicago

Justtechjobs.com Post A Job | Post A Resume

Building Dynamic Pages With Search Engines in Mind
Almost any developer knows that search engine placement is critical to the success of a web site. What many people don't know is that a lot of search engines cannot index many database-driven pages (basically any page with a '?' or '&' in the URL).
So when I set about building gotoCity.com, one of my goals was to make the site database-driven, but still indexable. I didn't want any use of cookies or mile-long URLs, and the site had to be co-brandable to top it all off. That meant the look-and-feel of the site had to be dependent on which "affiliate" site was being accessed (gotoCity.com is just one incarnation of the "DirectriCity" engine).
To pull this off, I started with a subtle Apache feature that can "force" a script to be called for any certain directory tree. In my case, I wanted all URLs that fall under "/local/" to call a script. This would be MUCH easier than creating 200,000 localized, co-branded web pages and a genuine directory structure to match it.
So in Apache's access.conf file, I added the following lines:
<Location /local>
ForceType application/x-httpd-php3
</Location>
This forces everything under the "/local/" directory to call a script called "local" in the root of my server. "local" then uses PHP to parse the URL and act accordingly:
[ Next Page ]


Comments:
search engineEmad05/08/05 05:36
I wanna make a search engine with in my webmahadi11/29/04 11:13
.htaccess linksWalter Irving08/06/03 18:40
Apache 2.0Matthew Rich06/26/03 15:20
RE: Alternative using .htaccessHector Lecuanda02/07/03 03:35
RE: Web MailRicardo Sanchez10/07/02 18:33
Automatic payments in PHPpravin09/26/02 05:18
RE: how to build a database driven siteAshish Hareet09/19/02 12:43
how to build a database driven siteFelix09/16/02 18:29
Accessing textboxes and other elements in PHPSomdutta08/27/02 04:56
RE: Alternative w/ apache rewrite moduleHerman07/09/02 17:37
Web MailRatana Ty06/20/02 20:46
Apache 'look back' feature on Win32!Dmitri06/14/02 11:02
Apache 'look back' feature on Win 32?Dmitri06/14/02 10:39
RE: I don't have a clue how to do thisPedro Borges04/05/02 18:58
RE: I don't have a clue how to do thisPam04/03/02 23:14
RE: Alternative w/ apache rewrite moduleEdward Hermanson04/02/02 20:27
RE: I am so confused!! :(David Cross04/01/02 05:01
RE: Indexing dynamic URLsDavid Cross04/01/02 05:00
RE: Not working in netscape 6David Cross04/01/02 04:58
RE: searcheable contentLuis Oliveira03/28/02 09:20
RE: Alternative using .htaccessAdrian03/05/02 18:00
RE: Alternative using .htaccessAdrian03/01/02 18:33
RE: Alternative using .htaccessAdrian03/01/02 18:30
RE: Another source ? Apache configurationsLeytr02/26/02 09:50
where do i startMark02/24/02 00:24
RE: Another source ? Apache configurationPatrick02/21/02 05:30
RE: Alternative using .htaccessAlexander Khine01/22/02 22:19
I use thisMat Kovach01/12/02 00:31
RE: Lost POST vars (javascript workaround)Jim 'Buffallo Thrill' Peterson12/31/01 11:26
RE: Alternative using .htaccessAlex12/31/01 01:25
Alternative w/ apache rewrite moduleJogn Ardeneese12/23/01 22:47
RE: Alternative using .htaccessMartin12/12/01 08:24
Another sourcetfp11/14/01 09:48
I am so confused!! :(Mark Baker11/08/01 16:10
RE: Lost POST vars (javascript workaround)Jim 'Buffallo Thrill' Peterson10/02/01 13:45
Attn: Julie HallC Bullock09/29/01 03:07
Indexing dynamic URLsPeter Clemons08/22/01 15:41
Hyper LinksWilliam Sheets08/15/01 20:56
RE: QuestionJ Hall07/24/01 07:33
RE: Alternative using .htaccessShannon Thrasher07/10/01 11:05
Not working in netscape 6Jeff Wells07/02/01 17:18
RE: Lost POST vars (javascript workaround)maxual05/21/01 10:25
searcheable contenttiago coelho04/09/01 18:00
QuestionNico Kanters04/07/01 16:50
Different directoryJason03/20/01 04:37
RE: Alternative using .htaccessKevin02/23/01 13:55
access.confC Casey02/18/01 07:41
Ch@t in PHP4Qndre02/10/01 23:58
Lost POST varsMatt02/01/01 23:48
RE: win32 errorStephen Cook01/31/01 05:49
search engine development...haris khan01/31/01 04:07
win32 errorStephen Cook01/29/01 19:22
Liked Difference in IdeaAnirban Dutta01/27/01 05:35
Building the pagesStephen Cook01/23/01 03:17
RE: Alternative using .htaccessArtem Shevchenko01/21/01 15:03
RE: Alternative using .htaccessBard01/18/01 10:45
Referenced articleR.K. Stephenson11/17/00 14:40
Alternative using .htaccessMark Hilgart10/01/00 06:23
Extremely useful!Jens-Petter Salvesen08/31/00 16:42
 

If you are looking for help, please post on the appropriate forum here. Your questions will be answered much more quickly.

Add A Comment:

Name:

Email:

Subject:

Message:

To reduce spam posts, messages are now manually approved

You are not [logged in]. That means your account will not get credit for this post.