Forum Moderators: coopster

Message Too Old, No Replies

Making Result pages static

         

Dpeper

12:26 am on Jun 1, 2004 (gmt 0)

10+ Year Member



I have results for widgets on my site.

Currently when you search for widgets by state for say it all comes back to one page "browse.php"

I want to create pages, that, Are static result pages such as "arizona.php" etc... that display the widget listings for that state, Is there any way to make these? With content that updates along with the database, or do I have to manually update it?

If you need any thing clarified just ask.

Donny

WhosAWhata

2:06 am on Jun 1, 2004 (gmt 0)

10+ Year Member



This is accomplished using Mod_rewrite, an apache thing
you should direct your question to the Apache Forum [webmasterworld.com]

this will involve making a file named .htaccess that contains the rules
example:
if the user types in site.com/arizona.php send them to site.com/browse.php?state=arizona
if the user types in site.com/colorado.php send them to site.com/browse.php?state=colorado

RewriteEngine on
RewriteRule %{REQUEST_URI}!^browse.php
RewriteRule (.*).php browse.php?state=$1